STM32L1 to use ADC1 address instead of incorrect ADC address

This commit is contained in:
Sam 2023-12-01 14:38:36 +11:00 committed by Dario Nieuwenhuis
parent 1cc9a2fcca
commit 830341361e

View File

@ -993,7 +993,7 @@ fn process_core(
continue; continue;
} }
let addr = if chip_name.starts_with("STM32F0") && pname == "ADC" { let addr = if (chip_name.starts_with("STM32F0") || chip_name.starts_with("STM32L1")) && pname == "ADC" {
defines.get_peri_addr("ADC1") defines.get_peri_addr("ADC1")
} else if chip_name.starts_with("STM32H7") && pname == "HRTIM" { } else if chip_name.starts_with("STM32H7") && pname == "HRTIM" {
defines.get_peri_addr("HRTIM1") defines.get_peri_addr("HRTIM1")