examples/demo/hw/hw_kbd.h

Go to the documentation of this file.
00001 
00042 #ifndef HW_KBD_H
00043 #define HW_KBD_H
00044 
00045 #include "hw/kbd_map.h"
00046 
00047 #include <cfg/macros.h>
00048 
00049 #define K_RPT_MASK (K_UP | K_DOWN | K_OK | K_CANCEL)
00050 
00051 #define KBD_HW_INIT \
00052     do { \
00053             /* Put here code to init hw */ \
00054     } while (0)
00055 
00056 EXTERN_C int emul_kbdReadCols(void);
00057 
00062 INLINE keymask_t kbd_readkeys(void)
00063 {
00064     // This is specific for the demo
00065     return (keymask_t)emul_kbdReadCols();
00066 }
00067 
00068 #endif /* HW_KBD_H */