File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
variants/STM32C0xx/C071G(8-B)U Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -25,36 +25,32 @@ WEAK void SystemClock_Config(void)
2525
2626 /* HSI configuration and activation */
2727 LL_RCC_HSI_Enable ();
28- while (LL_RCC_HSI_IsReady () != 1 )
29- {
28+ while (LL_RCC_HSI_IsReady () != 1 ) {
3029 }
3130
3231 LL_RCC_HSI_SetCalibTrimming (64 );
3332 LL_RCC_SetHSIDiv (LL_RCC_HSI_DIV_1 );
3433 LL_RCC_HSI48_Enable ();
3534
36- /* Wait till HSI48 is ready */
37- while (LL_RCC_HSI48_IsReady () != 1 )
38- {
35+ /* Wait till HSI48 is ready */
36+ while (LL_RCC_HSI48_IsReady () != 1 ) {
3937 }
4038
4139 /* Set AHB prescaler*/
4240 LL_RCC_SetAHBPrescaler (LL_RCC_HCLK_DIV_1 );
4341
4442 /* Sysclk activation on the HSI */
4543 LL_RCC_SetSysClkSource (LL_RCC_SYS_CLKSOURCE_HSI );
46- while (LL_RCC_GetSysClkSource () != LL_RCC_SYS_CLKSOURCE_STATUS_HSI )
47- {
44+ while (LL_RCC_GetSysClkSource () != LL_RCC_SYS_CLKSOURCE_STATUS_HSI ) {
4845 }
4946
5047 /* Set APB1 prescaler*/
5148 LL_RCC_SetAPB1Prescaler (LL_RCC_APB1_DIV_1 );
5249 /* Update CMSIS variable (which can be updated also through SystemCoreClockUpdate function) */
5350 LL_SetSystemCoreClock (48000000 );
5451
55- /* Update the time base */
56- if (HAL_InitTick (TICK_INT_PRIORITY ) != HAL_OK )
57- {
52+ /* Update the time base */
53+ if (HAL_InitTick (TICK_INT_PRIORITY ) != HAL_OK ) {
5854 Error_Handler ();
5955 }
6056}
You can’t perform that action at this time.
0 commit comments