提交 645260a1 编写于 作者: D dzzxzz@gmail.com

fixed a compiling error while not defined RT_USING_FINSH

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1906 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 fcf74ed1
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
#include <sep4020.h> #include <sep4020.h>
#include <board.h> #include <board.h>
#include <serial.h> #include <serial.h>
#ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
#endif
#ifdef RT_USING_LWIP #ifdef RT_USING_LWIP
#include <lwip/sys.h> #include <lwip/sys.h>
......
...@@ -769,9 +769,11 @@ void rt_hw_enc28j60_init() ...@@ -769,9 +769,11 @@ void rt_hw_enc28j60_init()
eth_device_init(&(enc28j60_dev->parent), "e0"); eth_device_init(&(enc28j60_dev->parent), "e0");
} }
#ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
void show_reg(void) void show_reg(void)
{ {
// //
} }
FINSH_FUNCTION_EXPORT(show_reg,show en28j60 regs) FINSH_FUNCTION_EXPORT(show_reg,show en28j60 regs)
#endif
...@@ -541,6 +541,7 @@ void stm3210c_rtgui_init() ...@@ -541,6 +541,7 @@ void stm3210c_rtgui_init()
today_init(); today_init();
} }
#ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
void hline(rt_base_t x1, rt_base_t x2, rt_base_t y, rt_uint32_t pixel) void hline(rt_base_t x1, rt_base_t x2, rt_base_t y, rt_uint32_t pixel)
...@@ -563,3 +564,4 @@ void cls(rt_uint32_t c) ...@@ -563,3 +564,4 @@ void cls(rt_uint32_t c)
rt_hw_lcd_draw_hline(&c, 0, 320, index); rt_hw_lcd_draw_hline(&c, 0, 320, index);
} }
FINSH_FUNCTION_EXPORT(cls, clear screen); FINSH_FUNCTION_EXPORT(cls, clear screen);
#endif
...@@ -471,6 +471,7 @@ void rtgui_touch_hw_init(void) ...@@ -471,6 +471,7 @@ void rtgui_touch_hw_init(void)
rt_device_register(&(touch->parent), "touch", RT_DEVICE_FLAG_RDWR); rt_device_register(&(touch->parent), "touch", RT_DEVICE_FLAG_RDWR);
} }
#ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
void touch_t( rt_uint16_t x , rt_uint16_t y ) void touch_t( rt_uint16_t x , rt_uint16_t y )
...@@ -490,5 +491,5 @@ void touch_t( rt_uint16_t x , rt_uint16_t y ) ...@@ -490,5 +491,5 @@ void touch_t( rt_uint16_t x , rt_uint16_t y )
rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse));
} }
FINSH_FUNCTION_EXPORT(touch_t, x & y ) ; FINSH_FUNCTION_EXPORT(touch_t, x & y ) ;
#endif
...@@ -170,6 +170,7 @@ void rt_hw_rtc_init(void) ...@@ -170,6 +170,7 @@ void rt_hw_rtc_init(void)
rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR);
} }
#ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
void list_date() void list_date()
{ {
...@@ -185,3 +186,4 @@ void list_date() ...@@ -185,3 +186,4 @@ void list_date()
} }
} }
FINSH_FUNCTION_EXPORT(list_date, list date); FINSH_FUNCTION_EXPORT(list_date, list date);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册