Add EXTI to peripherals. Fixes #11

This commit is contained in:
Dario Nieuwenhuis 2021-05-04 22:47:07 +02:00
parent cd5ea56f6f
commit f82971945d

View File

@ -328,6 +328,14 @@ def parse_chips():
}) })
peris[port] = p peris[port] = p
# EXTI is not in the cubedb XMLs
if addr := h['defines'].get('EXTI_BASE'):
peris['EXTI'] = OrderedDict({
'address': addr,
'kind': 'EXTI',
'block': 'exti/EXTI',
})
chip['peripherals'] = peris chip['peripherals'] = peris
with open('data/chips/'+chip_name+'.yaml', 'w') as f: with open('data/chips/'+chip_name+'.yaml', 'w') as f: