X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Fek-lpc-p2378%2Fhw%2Fkbd_map.h;fp=boards%2Fek-lpc-p2378%2Fhw%2Fkbd_map.h;h=07515c0a86825abf31a65fe1586b8fbde3905b04;hb=1b803b1b77ec99683f949e4e1e82b2bee936770f;hp=0000000000000000000000000000000000000000;hpb=f1597b21dbfbfceb5224956a041d84dc0aaeefb0;p=bertos.git diff --git a/boards/ek-lpc-p2378/hw/kbd_map.h b/boards/ek-lpc-p2378/hw/kbd_map.h new file mode 100644 index 00000000..07515c0a --- /dev/null +++ b/boards/ek-lpc-p2378/hw/kbd_map.h @@ -0,0 +1,71 @@ +/** + * \file + * + * + * \brief Keyboard map definitions. + * + * \version $Id: kbd_map.h 2848 2009-09-01 15:23:57Z lottaviano $ + * + * \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 */