mirror of
https://github.com/micropython/micropython.git
synced 2026-01-27 22:30:20 +01:00
stm32: Add support for all STM32F412xx MCUs.
And fix typo in the usage string of plli2svalues.py. Signed-off-by: Oliver Joos <oliver.joos@hispeed.ch>
This commit is contained in:
committed by
Damien George
parent
bc7d264e86
commit
e9bd1e2e08
@@ -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) || \
|
||||
|
||||
@@ -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 <mcu_series>] <hse in MHz> <pllm in MHz>")
|
||||
print("usage: plli2svalues.py [-c] [-m <mcu_series>] <hse in MHz> <pllm in MHz>")
|
||||
sys.exit(1)
|
||||
|
||||
if argv[0].startswith("hse:"):
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user