Merge pull request #90 from mryndzionek/dev
Added AFIO block definition to STM32F103C8 chip
This commit is contained in:
commit
6caf69650a
11
parse.py
11
parse.py
@ -993,6 +993,17 @@ def parse_chips():
|
||||
pwr_peri['block'] = block
|
||||
peris['PWR'] = pwr_peri
|
||||
|
||||
# AFIO is not in the cubedb XMLs
|
||||
if addr := defines.get('AFIO_BASE'):
|
||||
kind = 'AFIO'
|
||||
afio_peri = OrderedDict({
|
||||
'address': addr,
|
||||
'kind': kind,
|
||||
})
|
||||
if block := match_peri(chip_name[:7] + ':' + kind + ':'):
|
||||
afio_peri['block'] = block
|
||||
peris['AFIO'] = afio_peri
|
||||
|
||||
core['peripherals'] = peris
|
||||
|
||||
if 'block' in core['peripherals']['RCC']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user