4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-24 03:38:53 +08:00

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>
This commit is contained in:
Chen Wang 2025-01-27 10:43:59 +08:00 committed by Meco Man
parent d0fcb08611
commit 3383352cdc
2 changed files with 2 additions and 2 deletions
bsp/cvitek/c906_little/board

@ -11,6 +11,8 @@
#include <rtthread.h>
#include "board.h"
#include "tick.h"
#include "drv_uart.h"
void rt_hw_board_init(void)
{

@ -11,8 +11,6 @@
#ifndef __TICK_H__
#define __TICK_H__
int tick_isr(void);
int rt_hw_tick_init(void);
#endif /* __TICK_H__ */