Merge pull request #157 from msamsonoff/stm32f0-adc

Special case handling for STM32F0 ADC peripheral
This commit is contained in:
Dario Nieuwenhuis 2022-09-21 17:42:57 +02:00 committed by GitHub
commit a52fd6ad73

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