diff --git a/ports/stm32/adc.c b/ports/stm32/adc.c index e9be702132..a5163537e0 100644 --- a/ports/stm32/adc.c +++ b/ports/stm32/adc.c @@ -134,7 +134,9 @@ defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F401xC) || defined(STM32F401xE) #define VBAT_DIV (2) -#elif defined(STM32F411xE) || defined(STM32F412Zx) || \ +#elif defined(STM32F411xE) || \ + defined(STM32F412Cx) || defined(STM32F412Rx) || \ + defined(STM32F412Vx) || defined(STM32F412Zx) || \ defined(STM32F413xx) || defined(STM32F427xx) || \ defined(STM32F429xx) || defined(STM32F437xx) || \ defined(STM32F439xx) || defined(STM32F446xx) || \ diff --git a/ports/stm32/boards/plli2svalues.py b/ports/stm32/boards/plli2svalues.py index e5ea4e8dfd..f872c60ebb 100644 --- a/ports/stm32/boards/plli2svalues.py +++ b/ports/stm32/boards/plli2svalues.py @@ -24,6 +24,9 @@ mcu_support_plli2s = [ "stm32f401xe", "stm32f407xx", "stm32f411xe", + "stm32f412cx", + "stm32f412rx", + "stm32f412vx", "stm32f412zx", "stm32f413xx", "stm32f427xx", @@ -163,7 +166,7 @@ def main(): if mcu_series in mcu_support_plli2s: if len(argv) not in (1, 2): - print("usage: pllvalues.py [-c] [-m ] ") + print("usage: plli2svalues.py [-c] [-m ] ") sys.exit(1) if argv[0].startswith("hse:"): diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c index aa41092829..5308061732 100644 --- a/ports/stm32/timer.c +++ b/ports/stm32/timer.c @@ -889,7 +889,7 @@ static const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = { #endif #if defined(TIM6) - #if defined(STM32F412Zx) || defined(STM32L1) + #if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32L1) TIM_ENTRY(6, TIM6_IRQn), #elif defined(STM32G0) TIM_ENTRY(6, TIM6_DAC_LPTIM1_IRQn),