Make irq manager only required when preemption is active.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 12 Nov 2008 21:39:28 +0000 (21:39 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 12 Nov 2008 21:39:28 +0000 (21:39 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1929 38d2e660-2303-0410-9eaa-f027e97ec537

examples/demo/demo.c

index 9c2169ccef7e1236b2c464016341906a902468de..f4928c10fd0c75c79c03967ff04565a614f67673 100644 (file)
@@ -299,7 +299,10 @@ static cpu_stack_t monitor_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]
 int main(int argc, char *argv[])
 {
        emul_init(&argc, argv);
-       irq_init();
+
+       #if CONFIG_KERN_PREEMPT
+               irq_init();
+       #endif
        timer_init();
        buz_init();
        kbd_init();