BeRTOS
|
Go to the source code of this file.
Data Structures | |
struct | KbdHandler |
Keyboard handler descriptor. More... | |
Defines | |
#define | KHF_RAWKEYS BV(0) |
Handler gets raw key events. | |
Keyboard polling modes. | |
Define CONFIG_KBD_POLL to one of these. | |
#define | KBD_POLL_SOFTINT 1 |
Functions | |
void | kbd_init (void) |
Initialize keyboard ports and softtimer. | |
keymask_t | kbd_peek (void) |
Read a key from the keyboard buffer. | |
keymask_t | kbd_get (void) |
Wait for a keypress and return the mask of depressed keys. | |
keymask_t | kbd_get_timeout (mtime_t timeout) |
Wait up to timeout ms for a keypress and return the mask of depressed keys, or K_TIMEOUT if the timeout was reacked. | |
keymask_t | kbd_setRepeatMask (keymask_t mask) |
Set current mask of repeatable keys. |
Definition in file kbd.h.