Skip to content

Commit 7709dbe

Browse files
committed
update to v0.1.6
1 parent b285717 commit 7709dbe

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

drivers/baremetal/drv_clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/

drivers/rtt/drv_clk.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
void 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+
5859
int clock_information(void)
5960
{
6061
LOG_D("System Clock information");

drivers/rtt/drv_usart.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*
@@ -8,6 +8,7 @@
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"

0 commit comments

Comments
 (0)