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 #warning TODO:This is an example implementation, you must implement it!
00050 
00051 #define K_RPT_MASK (K_UP | K_DOWN | K_OK | K_CANCEL)
00052 
00053 #define KBD_HW_INIT \
00054     do { \
00055             /* Put here code to init hw */ \
00056     } while (0)
00057 
00058 EXTERN_C int emul_kbdReadCols(void);
00059 
00064 INLINE keymask_t kbd_readkeys(void)
00065 {
00066     return (keymask_t)emul_kbdReadCols();
00067 }
00068 
00069 #endif /* HW_KBD_H */