From dad9b57b2ff502fa4a18ecf20668866fe5f41272 Mon Sep 17 00:00:00 2001 From: bernie Date: Sun, 31 Aug 2008 11:31:05 +0000 Subject: [PATCH] demo: run monitor process git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1767 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/demo/demo.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1