From 460402019f6f63ae31bcc19911bb93f58fbc4051 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 20 Sep 2006 14:29:34 +0000 Subject: [PATCH] Add proc demo (not yet working). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@713 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/demo/demo.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/demo/demo.c b/app/demo/demo.c index 67296a18..35ece014 100755 --- a/app/demo/demo.c +++ b/app/demo/demo.c @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.9 2006/09/20 14:29:34 marco + *#* Add proc demo (not yet working). + *#* *#* Revision 1.8 2006/06/02 12:27:36 bernie *#* Tweak apparence; enable assertions. *#* @@ -221,6 +224,13 @@ void win_demo(Bitmap *bm) } } +void proc_demo(void) +{ + extern void proc_test(void); +// FIXME: proc_test() cause segmentation fault. + proc_test(); +} + /* SETTINGS SUBMENU */ @@ -270,6 +280,7 @@ static struct MenuItem main_items[] = { (const_iptr_t)"Win Fly", 0, (MenuHook)win_demo, (iptr_t)&lcd_bitmap }, { (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)"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 }, -- 2.25.1