From: asterix Date: Tue, 27 May 2008 15:58:27 +0000 (+0000) Subject: Use a specific kbd map for this app. X-Git-Tag: 2.0.0~541 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4b6db07448b9717a573f727b195adfc76236300e;p=bertos.git Use a specific kbd map for this app. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1393 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/demo/hw/kbd_map.h b/app/demo/hw/kbd_map.h new file mode 100644 index 00000000..c3bf7501 --- /dev/null +++ b/app/demo/hw/kbd_map.h @@ -0,0 +1,67 @@ +/** + * \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(0) +#define K_DOWN BV(1) +#define K_OK BV(2) +#define K_CANCEL BV(3) + +#define K_REPEAT BV(14) /**< This is a repeated keyevent. */ +#define K_TIMEOUT BV(15) /**< Fake key event for timeouts. */ +/*@}*/ + + +#endif /* HW_KBD_MAP_H */