Prechádzať zdrojové kódy

lpc43xx: fix some compile warnings

Grissiom 10 rokov pred
rodič
commit
03a2847f12

+ 9 - 0
bsp/lpc43xx/M0/applications/application.c

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

+ 1 - 1
bsp/lpc43xx/M0/applications/board.h

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

+ 8 - 0
bsp/lpc43xx/M4/applications/application.c

@@ -22,6 +22,14 @@
 #include <shell.h>
 #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") = {
 #include "M0_CODE.h"
 };

+ 1 - 1
bsp/lpc43xx/M4/applications/board.h

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