Skip to content

Commit 3383352

Browse files
unicornxmysterywolf
authored andcommitted
bsp: cvitek: c906_littel: fixed build warnings for board.c
When building bsp/cvitek/c906_little, compiler warns: ``` board/board.c: In function 'rt_hw_board_init': board/board.c:26:5: warning: implicit declaration of function 'rt_hw_tick_init'; did you mean 'rt_hw_stack_init'? [-Wimplicit-function-declaration] 26 | rt_hw_tick_init(); | ^~~~~~~~~~~~~~~ | rt_hw_stack_init board/board.c:29:5: warning: implicit declaration of function 'rt_hw_uart_init'; did you mean 'rt_hw_board_init'? [-Wimplicit-function-declaration] 29 | rt_hw_uart_init(); | ^~~~~~~~~~~~~~~ | rt_hw_board_init ``` To remove these build warnings, include header files which declare these functions. Plus, remove the decalartion of `tick_isr()`, this function does not exist. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
1 parent d0fcb08 commit 3383352

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsp/cvitek/c906_little/board/board.c

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <rtthread.h>
1212

1313
#include "board.h"
14+
#include "tick.h"
15+
#include "drv_uart.h"
1416

1517
void rt_hw_board_init(void)
1618
{

bsp/cvitek/c906_little/board/tick.h

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#ifndef __TICK_H__
1212
#define __TICK_H__
1313

14-
15-
int tick_isr(void);
1614
int rt_hw_tick_init(void);
1715

1816
#endif /* __TICK_H__ */

0 commit comments

Comments
 (0)