File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void system_clock_config(int target_freq_mhz)
4141 RCC_OscInitStruct .PLL .PLLR = RCC_PLLR_DIV2 ;
4242 if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK )
4343 {
44- Error_Handler ();
44+ Error_Handler ();
4545 }
4646 /** Initializes the CPU, AHB and APB busses clocks
4747 */
Original file line number Diff line number Diff line change 2121
2222void system_clock_config (int target_freq_mhz )
2323{
24- RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
24+ RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
2525 RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
2626
2727 /** Initializes the CPU, AHB and APB busses clocks
@@ -40,7 +40,7 @@ void system_clock_config(int target_freq_mhz)
4040 RCC_OscInitStruct .PLL .PLLR = RCC_PLLR_DIV2 ;
4141 if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK )
4242 {
43- Error_Handler ();
43+ Error_Handler ();
4444 }
4545 /** Initializes the CPU, AHB and APB busses clocks
4646 */
@@ -52,9 +52,10 @@ void system_clock_config(int target_freq_mhz)
5252
5353 if (HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_4 ) != HAL_OK )
5454 {
55- Error_Handler ();
55+ Error_Handler ();
5656 }
5757}
58+
5859int clock_information (void )
5960{
6061 LOG_D ("System Clock information" );
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2006-2018 , RT-Thread Development Team
2+ * Copyright (c) 2006-2020 , RT-Thread Development Team
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 *
88 * 2018-10-30 SummerGift first version
99 * 2020-05-23 chenyaxing modify stm32_uart_config
1010 */
11+
1112#include "string.h"
1213#include "stdlib.h"
1314#include "drv_common.h"
You can’t perform that action at this time.
0 commit comments