Merge pull request #157 from msamsonoff/stm32f0-adc
Special case handling for STM32F0 ADC peripheral
This commit is contained in:
commit
a52fd6ad73
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user