From 956ae12f312e9f1691d2615708fcdf3328f62c26 Mon Sep 17 00:00:00 2001 From: batt Date: Sat, 9 Aug 2008 10:09:26 +0000 Subject: [PATCH] Refactor to use new test interface; add timer test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1587 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/demo/demo.c | 10 ++++++++-- app/demo/demo.mk | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/demo/demo.c b/app/demo/demo.c index d737f22d..2853f01a 100644 --- a/app/demo/demo.c +++ b/app/demo/demo.c @@ -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 }, diff --git a/app/demo/demo.mk b/app/demo/demo.mk index 81251c2f..eab6c3cb 100644 --- a/app/demo/demo.mk +++ b/app/demo/demo.mk @@ -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 \ -- 2.25.1