summaryrefslogtreecommitdiff
path: root/ports/stm32/stm32_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-04-11 16:46:47 +1000
committerDamien George <damien.p.george@gmail.com>2018-04-11 16:46:47 +1000
commitcf9fc7346d91d729e5f6248d4bbbe5cb199cc772 (patch)
treed6ec6072264f632d15e729d2a938ee1a01ad13c6 /ports/stm32/stm32_it.c
parent68b70fac5cce7bfa3416dd04440e3a7c1979ffc5 (diff)
stm32: Allow a board to configure the HSE in bypass mode.
To use HSE bypass mode the board should define: #define MICROPY_HW_CLK_USE_BYPASS (1) If this is not defined, or is defined to 0, then HSE oscillator mode is used.
Diffstat (limited to 'ports/stm32/stm32_it.c')
-rw-r--r--ports/stm32/stm32_it.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c
index 04abfd211..db812958f 100644
--- a/ports/stm32/stm32_it.c
+++ b/ports/stm32/stm32_it.c
@@ -369,7 +369,7 @@ STATIC void OTG_CMD_WKUP_Handler(PCD_HandleTypeDef *pcd_handle) {
/* Configures system clock after wake-up from STOP: enable HSE, PLL and select
PLL as system clock source (HSE and PLL are disabled in STOP mode) */
- __HAL_RCC_HSE_CONFIG(RCC_HSE_ON);
+ __HAL_RCC_HSE_CONFIG(MICROPY_HW_CLK_HSE_STATE);
/* Wait till HSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)