Skip to content

Commit 160cc10

Browse files
committed
update some driver
1 parent 9373d56 commit 160cc10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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]);
@@ -375,4 +376,3 @@ char rt_hw_console_getchar(void)
375376
}
376377
#endif /* RT_USING_FINSH */
377378
#endif /* RT_USING_CONSLONE */
378-

0 commit comments

Comments
 (0)