Restore the old behaviour of calling a custom schedule() function
(provided by the user) inside kbd_peek() if CONFIG_KBD_SCHED is enabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3254
38d2e660-2303-0410-9eaa-
f027e97ec537
#if defined(ARCH_QT) && (ARCH & ARCH_QT)
/* This emulator hook should yield the CPU to the host. */
EXTERN_C_BEGIN
- void refresh(void);
+ void schedule(void);
EXTERN_C_END
- #define CPU_IDLE refresh()
+ #define CPU_IDLE schedule()
#else /* !ARCH_EMUL */
#define CPU_IDLE do { /* nothing */ } while (0)
#endif /* !ARCH_EMUL */
keymask_t key = 0;
#if CONFIG_KBD_SCHED
- timer_delay(1);
+ schedule();
#endif
/* Extract an event from the keyboard buffer */