X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fhw%2Fkbd_map.h;fp=boards%2Farduino%2Fhw%2Fkbd_map.h;h=ffe1431186f629f7870df70c554bfedb8bb99b2e;hb=ecb34d7a7fa3e00d9157eeafa2dea50cbbc317ce;hp=0000000000000000000000000000000000000000;hpb=95a0ab6c264432423d7d49839b24504df8fe15f5;p=bertos.git diff --git a/boards/arduino/hw/kbd_map.h b/boards/arduino/hw/kbd_map.h new file mode 100644 index 00000000..ffe14311 --- /dev/null +++ b/boards/arduino/hw/kbd_map.h @@ -0,0 +1,71 @@ +/** + * \file + * + * + * \brief Keyboard map definitions. + * + * \version $Id$ + * + * \author Francesco Sacchi + * \author Stefano Fedrigo + */ + +#ifndef HW_KBD_MAP_H +#define HW_KBD_MAP_H + +#include + +#warning TODO:This is an example implentation, you must implement it! + + +/** + * Type for keyboard mask. + */ +typedef uint16_t keymask_t; + +/** + * \name Keycodes. + */ +/*@{*/ +#define K_UP BV(0) +#define K_DOWN BV(1) +#define K_OK BV(2) +#define K_CANCEL BV(3) + +#define K_REPEAT BV(13) /**< This is a repeated keyevent. */ +#define K_TIMEOUT BV(14) /**< Fake key event for timeouts. */ +#define K_LONG BV(15) +/*@}*/ + +#define K_LNG_MASK 0 + +#endif /* HW_KBD_MAP_H */