Refactor to use new test interface; add timer test.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 9 Aug 2008 10:09:26 +0000 (10:09 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 9 Aug 2008 10:09:26 +0000 (10:09 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1587 38d2e660-2303-0410-9eaa-f027e97ec537

app/demo/demo.c
app/demo/demo.mk

index d737f22d834f7c098b76caf3775b7943f2e57229..2853f01a16b50c46416fb23137dee761af15963d 100644 (file)
@@ -223,8 +223,13 @@ void win_demo(Bitmap *bm)
 
 void proc_demo(void)
 {
-       extern void proc_test(void);
-       proc_test();
+       proc_testRun();
+}
+
+void timer_demo(void)
+{
+       timer_testRun();
+       timer_testTearDown();
 }
 
 
@@ -277,6 +282,7 @@ static struct MenuItem main_items[] =
        { (const_iptr_t)"Bounce!",     0, (MenuHook)bouncing_logo,(iptr_t)&lcd_bitmap    },
        { (const_iptr_t)"Hello World", 0, (MenuHook)hello_world,  (iptr_t)&lcd_bitmap    },
        { (const_iptr_t)"Scheduling",  0, (MenuHook)proc_demo,    (iptr_t)&lcd_bitmap    },
+       { (const_iptr_t)"Timer Test",  0, (MenuHook)timer_demo,   (iptr_t)&lcd_bitmap    },
        { (const_iptr_t)"Menu MX",     0, (MenuHook)menu_handle,  (iptr_t)&mx_menu       },
        { (const_iptr_t)"Display",     0, (MenuHook)menu_handle,  (iptr_t)&display_menu  },
        { (const_iptr_t)"Settings",    0, (MenuHook)menu_handle,  (iptr_t)&settings_menu },
index 81251c2f9c8c08164c0f7e4a2d7d770153f7aad2..eab6c3cb5e48d3c5b4f3ec1fa29180141ec55db3 100644 (file)
@@ -41,6 +41,7 @@ demo_CSRC = \
        bertos/icons/logo.c \
        bertos/drv/kbd.c \
        bertos/drv/timer.c \
+       bertos/drv/timer_test.c \
        bertos/drv/buzzer.c \
        bertos/drv/ser.c \
        bertos/emul/ser_posix.c \