lpc43xx: fix some compile warnings

This commit is contained in:
Grissiom 2015-01-06 21:39:18 +08:00
parent 7965708050
commit 03a2847f12
4 changed files with 19 additions and 2 deletions

View File

@ -16,11 +16,20 @@
#include <board.h> #include <board.h>
#include <rtdevice.h> #include <rtdevice.h>
#include "drv_led.h" #include "drv_led.h"
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
#include <shell.h> #include <shell.h>
#endif #endif
#ifdef RT_USING_LOGTRACE
#include <log_trace.h>
#endif
#ifdef RT_USING_VBUS
#include <vbus.h>
#endif
/* thread phase init */ /* thread phase init */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
{ {

View File

@ -54,6 +54,6 @@ extern int __bss_end;
void rt_hw_board_init(void); void rt_hw_board_init(void);
int rt_hw_board_heap_init(void); int rt_hw_board_heap_init(void);
int rt_vbus_do_init(void);
#endif #endif

View File

@ -22,6 +22,14 @@
#include <shell.h> #include <shell.h>
#endif #endif
#ifdef RT_USING_LOGTRACE
#include <log_trace.h>
#endif
#ifdef RT_USING_VBUS
#include <vbus.h>
#endif
static const unsigned char _M0_CODE[] SECTION("M0_CODE") = { static const unsigned char _M0_CODE[] SECTION("M0_CODE") = {
#include "M0_CODE.h" #include "M0_CODE.h"
}; };

View File

@ -54,6 +54,6 @@ extern int __bss_end;
void rt_hw_board_init(void); void rt_hw_board_init(void);
int rt_hw_board_heap_init(void); int rt_hw_board_heap_init(void);
int rt_vbus_do_init(void);
#endif #endif