X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32VLDiscovery%2Fhw%2Fkbd_map.h;fp=boards%2Fstm32VLDiscovery%2Fhw%2Fkbd_map.h;h=d19ab81ef2049224f43c28d7975fa7e66da5fcc5;hb=bbc9b62788f5e2f94dd550708a6af22f6d49eb98;hp=0000000000000000000000000000000000000000;hpb=17f239924a2d52d099e60ba3a65662f4d2b1fb16;p=bertos.git diff --git a/boards/stm32VLDiscovery/hw/kbd_map.h b/boards/stm32VLDiscovery/hw/kbd_map.h new file mode 100644 index 00000000..d19ab81e --- /dev/null +++ b/boards/stm32VLDiscovery/hw/kbd_map.h @@ -0,0 +1,61 @@ +/** + * \file + * + * + * \author Andrea Righi + * + * \brief Keyboard map definitions for the STM32-P103 evaluation board + */ + +#ifndef HW_KBD_MAP_H +#define HW_KBD_MAP_H + +#include + +/** + * Type for keyboard mask. + */ +typedef uint16_t keymask_t; + +/** + * \name Keycodes. + */ +/*@{*/ +#define K_WAKEUP BV(0) + +#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 */