Add FLASH to parse.py

This commit is contained in:
Thales Fragoso 2021-05-19 22:42:10 -03:00
parent 15bc0b7340
commit 080776057c

View File

@ -422,6 +422,13 @@ def parse_chips():
'block': 'exti_v1/EXTI',
})
# FLASH is not in the cubedb XMLs
if addr := h['defines'].get('FLASH_R_BASE'):
peris['FLASH'] = OrderedDict({
'address': addr,
'kind': 'FLASH:' + chip_name[:7] + '_flash_v1_0',
})
chip['peripherals'] = peris
with open('data/chips/'+chip_name+'.yaml', 'w') as f: