X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Flm3s1968%2Fhw%2Fkbd_map.h;fp=examples%2Flm3s1968%2Fhw%2Fkbd_map.h;h=a8efc919c8d42de64bdb78bcb6642d132580b74c;hb=27b7177adf935135af60b935fe0701f7210ed3f7;hp=0000000000000000000000000000000000000000;hpb=e297562641a5c6f62f36593b6edc260e2c1685bd;p=bertos.git diff --git a/examples/lm3s1968/hw/kbd_map.h b/examples/lm3s1968/hw/kbd_map.h new file mode 100644 index 00000000..a8efc919 --- /dev/null +++ b/examples/lm3s1968/hw/kbd_map.h @@ -0,0 +1,69 @@ +/** + * \file + * + * + * \brief Keyboard map definitions. + * + * \version $Id$ + * + * \author Francesco Sacchi + * \author Stefano Fedrigo + */ + +#ifndef HW_KBD_MAP_H +#define HW_KBD_MAP_H + +#include + +/** + * Type for keyboard mask. + */ +typedef uint16_t keymask_t; + +/** + * \name Keycodes. + */ +/*@{*/ +#define K_UP BV(3) +#define K_DOWN BV(4) +#define K_LEFT BV(5) +#define K_RIGHT BV(6) +#define K_OK BV(7) + +#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 */