File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ void lp_ticker_init(void)
170
170
171
171
/* Enable LSE clock */
172
172
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
173
+ #if MBED_CONF_TARGET_LSE_BYPASS
174
+ RCC_OscInitStruct .LSEState = RCC_LSE_BYPASS ;
175
+ #else
173
176
RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
177
+ #endif
174
178
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
175
179
176
180
/* 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)
65
65
#if MBED_CONF_TARGET_LSE_AVAILABLE
66
66
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
67
67
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
68
+ #if MBED_CONF_TARGET_LSE_BYPASS
69
+ RCC_OscInitStruct .LSEState = RCC_LSE_BYPASS ;
70
+ #else
68
71
RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
72
+ #endif
69
73
70
74
if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK ) {
71
75
error ("Cannot initialize RTC with LSE\n" );
Original file line number Diff line number Diff line change 2709
2709
"usb_speed" : {
2710
2710
"help" : " USE_USB_OTG_FS or USE_USB_OTG_HS or USE_USB_HS_IN_FS" ,
2711
2711
"value" : " USE_USB_OTG_HS"
2712
+ },
2713
+ "lse_bypass" : {
2714
+ "help" : " 1 to use an oscillator (not a crystal) on 32k LSE" ,
2715
+ "value" : " 1"
2712
2716
}
2713
2717
},
2714
2718
"macros_add" : [
You can’t perform that action at this time.
0 commit comments