bertos/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 #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     /* Implement me! */
00067 
00068     //Only for test remove when implement this function
00069     return 0;
00070 }
00071 
00072 #endif /* HW_KBD_H */