aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/powerctrlboot.c
AgeCommit message (Collapse)Author
2020-09-08stm32/powerctrlboot: Acquire HSEM5 on STM32WB during SystemClock_Config.Jim Mussared
This is required to allow using WS firmware newer than 1.1.1 concurrently with USB (e.g. USB VCP). It prevents CPU2 from modifying the CLK48 config on boot. Tested on WS=1.8 FUS=1.1. See AN5289 and https://github.com/micropython/micropython/issues/6316
2020-06-22stm32/powerctrlboot: Include irq.h to get definitions of IRQ priorities.Damien George
irq.h is included by py/mphal.h but it's better to be explicit, eg if mboot uses powerctrlboot.c. Signed-off-by: Damien George <damien@micropython.org>
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-10-21stm32/powerctrlboot: Fix config of systick IRQ priority on F0/L0/WB MCU.Damien George
Prior to this commit the systick IRQ priority was set at lowest priority on F0/L0/WB MCUs, because it was left at the default and never configured. This commit ensures the priority is configured and sets it to the highest priority.
2019-09-26stm32/powerctrlboot: Add support for HSI at 8MHz on F0 MCUs.Chris Mason
For use with F0 MCUs that don't have HSI48. Select the clock source explicitly in mpconfigboard.h. On the NUCLEO_F091RC board use HSE bypass when HSE is chosen because the NUCLEO clock source is STLINK not a crystal.
2019-09-26stm32/powerctrlboot: Fix clock and PLL selection for HSI48 on F0 MCUs.Chris Mason
Before this patch the UART baudrate on F0 MCUs was wrong because the stm32lib SystemCoreClockUpdate sets SystemCoreClock to 8MHz instead of 48MHz if HSI48 is routed directly to SYSCLK. The workaround is to use HSI48 -> PREDIV (/2) -> PLL (*2) -> SYSCLK. Fixes issue #5049.
2019-07-17stm32: Add initial support for STM32WBxx MCUs.Damien George
This new series of MCUs is similar to the L4 series with an additional Cortex-M0 coprocessor. The firmware for the wireless stack must be managed separately and MicroPython does not currently interface to it. Supported features so far include: RTC, UART, USB, internal flash filesystem.
2019-07-16stm32/powerctrlboot: Increase SYSCLK to 32MHz for L0 MCUs.Damien George
2019-07-16stm32: Add support for USB on L0 MCUs.Damien George
2019-07-08stm32/powerctrl: Move F0's SystemClock_Config to powerctrlboot.c.Damien George
2019-07-08stm32/powerctrl: Move L0's SystemClock_Config to powerctrlboot.c file.Damien George