Skip to content

Commit e81300c

Browse files
committed
update to v0.1.6
1 parent 86548ea commit e81300c

7 files changed

Lines changed: 24 additions & 10 deletions

File tree

drivers/baremetal/drv_clk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ void system_clock_config(int target_freq_mhz)
4141
RCC_OscInitStruct.PLL.PLLQ = 2;
4242
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
4343
{
44-
Error_Handler();
44+
Error_Handler();
4545
}
4646
/** Activate the Over-Drive mode
4747
*/
4848
if (HAL_PWREx_EnableOverDrive() != HAL_OK)
4949
{
50-
Error_Handler();
50+
Error_Handler();
5151
}
5252
/** Initializes the CPU, AHB and APB busses clocks
5353
*/
@@ -60,7 +60,7 @@ void system_clock_config(int target_freq_mhz)
6060

6161
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK)
6262
{
63-
Error_Handler();
63+
Error_Handler();
6464
}
6565
}
6666

drivers/baremetal/drv_usart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static long stm32_gpio_clk_enable(GPIO_TypeDef *gpiox)
212212
return 0;
213213
}
214214

215-
char * up_char(char * c)
215+
static int up_char(char * c)
216216
{
217217
if ((*c >= 'a') && (*c <= 'z'))
218218
{

drivers/nano/SConscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ include_str = """
3232
#include <stm32f7xx.h>
3333
"""
3434
modify_board_h_file(os.path.join(cwd, file_path), include_str)
35+
os.remove(os.path.join(cwd,"SConscript"))
3536

3637
Return('group')

drivers/nano/drv_clk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ void system_clock_config(int target_freq_mhz)
3939
RCC_OscInitStruct.PLL.PLLQ = 2;
4040
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
4141
{
42-
Error_Handler();
42+
Error_Handler();
4343
}
4444
/** Activate the Over-Drive mode
4545
*/
4646
if (HAL_PWREx_EnableOverDrive() != HAL_OK)
4747
{
48-
Error_Handler();
48+
Error_Handler();
4949
}
5050
/** Initializes the CPU, AHB and APB busses clocks
5151
*/
@@ -58,7 +58,7 @@ void system_clock_config(int target_freq_mhz)
5858

5959
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK)
6060
{
61-
Error_Handler();
61+
Error_Handler();
6262
}
6363
}
6464

drivers/nano/drv_usart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,15 @@ static rt_err_t stm32_gpio_clk_enable(GPIO_TypeDef *gpiox)
223223
return RT_EOK;
224224
}
225225

226-
char * up_char(char * c)
226+
static int up_char(char * c)
227227
{
228228
if ((*c >= 'a') && (*c <= 'z'))
229229
{
230230
*c = *c - 32;
231231
}
232232
return 0;
233233
}
234+
234235
static void get_pin_by_name(const char* pin_name, GPIO_TypeDef **port, uint16_t *pin)
235236
{
236237
int pin_num = atoi((char*) &pin_name[2]);
@@ -372,4 +373,3 @@ char rt_hw_console_getchar(void)
372373
}
373374
#endif /* RT_USING_FINSH */
374375
#endif /* RT_USING_CONSLONE */
375-

drivers/rtt/SConscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ include_str = """
3232
#include <stm32f7xx.h>
3333
"""
3434
modify_board_h_file(os.path.join(cwd, file_path), include_str)
35+
os.remove(os.path.join(cwd,"SConscript"))
3536

3637
Return('group')

drivers/rtt/drv_usart.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2018-10-30 SummerGift first version
9+
* 2020-05-23 chenyaxing modify stm32_uart_config
10+
*/
11+
112
#include "string.h"
213
#include "stdlib.h"
314
#include <board.h>
@@ -320,14 +331,15 @@ static rt_err_t stm32_gpio_clk_enable(GPIO_TypeDef *gpiox)
320331

321332
return RT_EOK;
322333
}
323-
char * up_char(char * c)
334+
static int up_char(char * c)
324335
{
325336
if ((*c >= 'a') && (*c <= 'z'))
326337
{
327338
*c = *c - 32;
328339
}
329340
return 0;
330341
}
342+
331343
static void get_pin_by_name(const char* pin_name, GPIO_TypeDef **port, uint16_t *pin)
332344
{
333345
int pin_num = atoi((char*) &pin_name[2]);

0 commit comments

Comments
 (0)