STM32L1 to use ADC1 address instead of incorrect ADC address
This commit is contained in:
parent
1cc9a2fcca
commit
830341361e
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user