diff options
| author | Damien George <damien@micropython.org> | 2021-07-22 15:29:14 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-08-07 23:41:20 +1000 |
| commit | f834fef6bbd28e31d8e5c04dc2092886b162fe89 (patch) | |
| tree | 2cdcd721576e6309889ac18b43225ff93ec30a10 /ports/stm32/powerctrlboot.c | |
| parent | 3b32b3d1b31f957d2ed57d69bc0c503bbdf2a4cf (diff) | |
stm32/powerctrl: Support changing frequency on WB MCUs.
This allows changing the frequency to: 100kHz, 200kHz, 400kHz, 800kHz,
1MHz, 2MHz, 4MHz, 8MHz, 16MHz, 32MHz, 64MHz. For frequencies 2MHz and
below, low power run (LPR) mode is enabled automatically.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/stm32/powerctrlboot.c')
| -rw-r--r-- | ports/stm32/powerctrlboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/powerctrlboot.c b/ports/stm32/powerctrlboot.c index 880e43e04..caa563292 100644 --- a/ports/stm32/powerctrlboot.c +++ b/ports/stm32/powerctrlboot.c @@ -28,7 +28,7 @@ #include "irq.h" #include "powerctrl.h" -static inline void powerctrl_config_systick(void) { +void powerctrl_config_systick(void) { // Configure SYSTICK to run at 1kHz (1ms interval) SysTick->CTRL |= SYSTICK_CLKSOURCE_HCLK; SysTick_Config(HAL_RCC_GetHCLKFreq() / 1000); |
