|
@@ -1,10 +1,10 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2006-2018, RT-Thread Development Team
|
|
|
+ * Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
*
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
*
|
|
|
* Change Logs:
|
|
|
- * Date Author Notes
|
|
|
+ * Date Author Notes
|
|
|
* 2020-07-13 Dozingfiretruck first version
|
|
|
*/
|
|
|
|
|
@@ -16,11 +16,11 @@ void SystemClock_Config(void)
|
|
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
|
|
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
|
|
|
|
|
|
- /** Configure the main internal regulator output voltage
|
|
|
+ /** Configure the main internal regulator output voltage
|
|
|
*/
|
|
|
__HAL_RCC_PWR_CLK_ENABLE();
|
|
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
|
|
- /** Initializes the CPU, AHB and APB busses clocks
|
|
|
+ /** Initializes the CPU, AHB and APB busses clocks
|
|
|
*/
|
|
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI|RCC_OSCILLATORTYPE_HSE
|
|
|
|RCC_OSCILLATORTYPE_LSE;
|
|
@@ -37,7 +37,7 @@ void SystemClock_Config(void)
|
|
|
{
|
|
|
Error_Handler();
|
|
|
}
|
|
|
- /** Initializes the CPU, AHB and APB busses clocks
|
|
|
+ /** Initializes the CPU, AHB and APB busses clocks
|
|
|
*/
|
|
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
|
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|