File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ void lp_ticker_init(void)
170170
171171 /* Enable LSE clock */
172172 RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
173+ #if MBED_CONF_TARGET_LSE_BYPASS
174+ RCC_OscInitStruct .LSEState = RCC_LSE_BYPASS ;
175+ #else
173176 RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
177+ #endif
174178 RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
175179
176180 /* Select the LSE clock as LPTIM peripheral clock */
Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ void rtc_init(void)
6565#if MBED_CONF_TARGET_LSE_AVAILABLE
6666 RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
6767 RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
68+ #if MBED_CONF_TARGET_LSE_BYPASS
69+ RCC_OscInitStruct .LSEState = RCC_LSE_BYPASS ;
70+ #else
6871 RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
72+ #endif
6973
7074 if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK ) {
7175 error ("Cannot initialize RTC with LSE\n" );
You can’t perform that action at this time.
0 commit comments