From: bernie Date: Sun, 31 Aug 2008 11:31:05 +0000 (+0000) Subject: demo: run monitor process X-Git-Tag: 2.0.0~167 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dad9b57b2ff502fa4a18ecf20668866fe5f41272;p=bertos.git demo: run monitor process git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1767 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/demo/demo.c b/app/demo/demo.c index 030ce35f..9c2169cc 100644 --- a/app/demo/demo.c +++ b/app/demo/demo.c @@ -41,6 +41,7 @@ #include #include +#include #include #include @@ -293,6 +294,8 @@ static struct MenuItem main_items[] = static struct Menu main_menu = { main_items, "Main Menu", MF_STICKY, &lcd_bitmap, 0 }; +static cpu_stack_t monitor_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; + int main(int argc, char *argv[]) { emul_init(&argc, argv); @@ -302,6 +305,7 @@ int main(int argc, char *argv[]) kbd_init(); lcd_init(); proc_init(); + monitor_start(sizeof(monitor_stack), monitor_stack); menu_handle(&main_menu);