rit128x96: add distinct configuration and hardware definition files.
[bertos.git] / bertos / drv / kbd.c
index fa03d841aacc3ff71dc2e52fd2597e464b5a44a7..8074ad3f1b3e17cffe8b6d620ab2720f6947a0cc 100644 (file)
@@ -177,10 +177,10 @@ keymask_t kbd_peek(void)
 {
        keymask_t key = 0;
 
-// FIXME: make it optional
-       /* Let other tasks run for a while */
+#if CONFIG_KBD_SCHED
        extern void schedule(void);
        schedule();
+#endif
 
        /* Extract an event from the keyboard buffer */
        IRQ_DISABLE;
@@ -236,7 +236,7 @@ void kbd_addHandler(struct KbdHandler *handler)
        KbdHandler *node;
        List *list;
 
-       cpuflags_t flags;
+       cpu_flags_t flags;
        IRQ_SAVE_DISABLE(flags);
 
        /* Choose between raw and coocked handlers list */