BeRTOS
hw_kbd.h
Go to the documentation of this file.
00001 
00041 #ifndef HW_KBD_H
00042 #define HW_KBD_H
00043 
00044 #include "hw/kbd_map.h"
00045 
00046 #include <cfg/macros.h>
00047 
00048 #warning TODO:This is an example implementation, you must implement it!
00049 
00050 #define K_RPT_MASK (K_UP | K_DOWN | K_OK | K_CANCEL)
00051 
00052 #define KBD_HW_INIT \
00053     do { \
00054             /* Put here code to init hw */ \
00055     } while (0)
00056 
00057 EXTERN_C int emul_kbdReadCols(void);
00058 
00063 INLINE keymask_t kbd_readkeys(void)
00064 {
00065     /* Implement me! */
00066 
00067     //Only for test remove when implement this function
00068     return 0;
00069 }
00070 
00071 #endif /* HW_KBD_H */