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.
This commit is contained in:
@@ -404,7 +404,7 @@ void SystemClock_Config(void)
|
||||
/* Enable HSE Oscillator and activate PLL with HSE as source */
|
||||
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||
RCC_OscInitStruct.HSEState = MICROPY_HW_CLK_HSE_STATE;
|
||||
RCC_OscInitStruct.HSIState = RCC_HSI_OFF;
|
||||
#if defined(STM32H7)
|
||||
RCC_OscInitStruct.CSIState = RCC_CSI_OFF;
|
||||
|
||||
Reference in New Issue
Block a user