File tree 1 file changed +8
-7
lines changed
libraries/SrcWrapper/src/stm32
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -128,16 +128,17 @@ void enableClock(sourceClock_t source)
128
128
RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
129
129
}
130
130
break ;
131
- case HSE_CLOCK :
131
+ case HSE_CLOCK : {
132
132
#if defined(RCC_HSE_BYPASS_PWR ) && defined(LORAWAN_BOARD_HAS_TCXO ) && (LORAWAN_BOARD_HAS_TCXO == 1 )
133
- uint32_t HSEState = RCC_HSE_BYPASS_PWR ;
133
+ uint32_t HSEState = RCC_HSE_BYPASS_PWR ;
134
134
#else
135
- uint32_t HSEState = RCC_HSE_ON ;
135
+ uint32_t HSEState = RCC_HSE_ON ;
136
136
#endif
137
- __HAL_RCC_HSE_CONFIG (HSEState );
138
- if (__HAL_RCC_GET_FLAG (RCC_FLAG_HSERDY ) == RESET ) {
139
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
140
- RCC_OscInitStruct .HSEState = HSEState ;
137
+ __HAL_RCC_HSE_CONFIG (HSEState );
138
+ if (__HAL_RCC_GET_FLAG (RCC_FLAG_HSERDY ) == RESET ) {
139
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
140
+ RCC_OscInitStruct .HSEState = HSEState ;
141
+ }
141
142
}
142
143
break ;
143
144
default :
You can’t perform that action at this time.
0 commit comments