X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fdemo%2Fdemo.c;h=efdf37ec334aa26b5e161433b424e659f4accd06;hb=200574b741f08ec9f1f3e391176d499ad8faa4bb;hp=a7e151a6a2015c8e3404665baea3e597597b22b0;hpb=39a17affec1d9fc7887a23705fc83b2b619956a3;p=bertos.git diff --git a/examples/demo/demo.c b/examples/demo/demo.c index a7e151a6..efdf37ec 100644 --- a/examples/demo/demo.c +++ b/examples/demo/demo.c @@ -40,6 +40,7 @@ #include #include +#include #include #include @@ -227,6 +228,12 @@ void proc_demo(void) proc_testRun(); } +void sem_demo(void) +{ + sem_testRun(); + sem_testTearDown(); +} + void timer_demo(void) { timer_testRun(); @@ -283,6 +290,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)"Semaphores", 0, (MenuHook)sem_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 },