diff options
| author | bernard.xiong <[email protected]> | 2010-05-16 02:35:37 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-05-16 02:35:37 +0000 |
| commit | 645357a05ac8cb6a68f21af7f80aba0e01ef5da0 (patch) | |
| tree | 1ba4181b6a8aac78a42d7e0bacfd9e3f5cdf7bf0 | |
| parent | 72139e8441d7e484018a2b85802d3ca866b604cd (diff) | |
remove update GUI demo building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@716 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | bsp/mini2440/run_module.c | 2 | ||||
| -rw-r--r-- | bsp/mini2440/today.c | 4 | ||||
| -rw-r--r-- | bsp/mini2440/touch.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/bsp/mini2440/run_module.c b/bsp/mini2440/run_module.c index 41452821f4..372e67d1fe 100644 --- a/bsp/mini2440/run_module.c +++ b/bsp/mini2440/run_module.c @@ -16,7 +16,7 @@ #include <dfs_posix.h>
#include "string.h"
-#ifdef RT_USING_FINSH
+#if defined(RT_USING_FINSH) && defined(RT_USING_MODULE)
#include <finsh.h>
static char buffer[4096];
diff --git a/bsp/mini2440/today.c b/bsp/mini2440/today.c index 2ee6a4e599..4066f4228e 100644 --- a/bsp/mini2440/today.c +++ b/bsp/mini2440/today.c @@ -148,7 +148,7 @@ rt_bool_t today_workbench_event_handler(rtgui_widget_t *widget, rtgui_event_t *e {
struct rtgui_event_mouse* emouse = (struct rtgui_event_mouse*)event;
//if (emouse->button == RTGUI_MOUSE_BUTTON_UP | RTGUI_MOUSE_BUTTON_LEFT)
- if(0)
+ if(0)
{
/* active home view */
if (workbench->current_view != home_view)
@@ -192,7 +192,7 @@ static void today_entry(void* parameter) /* add function view */
rtgui_widget_get_rect(RTGUI_WIDGET(workbench), &rect);
function_view = (struct rtgui_view*)rtgui_list_view_create(function_list,
- sizeof(function_list)/sizeof(struct rtgui_list_item), &rect);
+ sizeof(function_list)/sizeof(struct rtgui_list_item), &rect, RTGUI_LIST_VIEW_LIST);
rtgui_workbench_add_view(workbench, function_view);
rtgui_workbench_event_loop(workbench);
diff --git a/bsp/mini2440/touch.c b/bsp/mini2440/touch.c index a8400aea64..e23a7e1ddd 100644 --- a/bsp/mini2440/touch.c +++ b/bsp/mini2440/touch.c @@ -255,7 +255,7 @@ static void rt_touch_handler(int irqno) }
/* clear interrupt */
- INTPND |= (rt_uint32_t)(1 << INTADC);
+ INTPND |= (1ul << INTADC);
}
/* RT-Thread Device Interface */
@@ -279,7 +279,7 @@ static rt_err_t rtgui_touch_init (rt_device_t dev) rt_hw_interrupt_umask(INTADC);
/* clear interrupt */
- INTPND |= (rt_uint32_t)(1 << INTADC);
+ INTPND |= (1ul << INTADC);
SUBSRCPND |= BIT_SUB_TC;
SUBSRCPND |= BIT_SUB_ADC;
|
