Special case handling for the STM32F0 ADC peripheral

This commit is contained in:
Matthew W. Samsonoff 2022-09-08 23:59:21 -04:00
parent 9d99221e7e
commit 26e64bea78

View File

@ -769,7 +769,10 @@ def parse_chips():
peris = []
for pname, pkind in peri_kinds.items():
addr = get_peri_addr(defines, pname)
if chip_name.startswith('STM32F0') and pname == 'ADC':
addr = get_peri_addr(defines, 'ADC1')
else:
addr = get_peri_addr(defines, pname)
if addr is None:
continue