/** * \file * * * \brief Keyboard hardware-specific definitions * * * \author Francesco Sacchi * \author Stefano Fedrigo */ #ifndef HW_KBD_H #define HW_KBD_H #include "hw/kbd_map.h" #include #warning TODO:This is an example implementation, you must implement it! #define K_RPT_MASK (K_UP | K_DOWN | K_OK | K_CANCEL) #define KBD_HW_INIT \ do { \ /* Put here code to init hw */ \ } while (0) EXTERN_C int emul_kbdReadCols(void); /** * Read the keyboard ports and return the mask of * depressed keys. */ INLINE keymask_t kbd_readkeys(void) { /* Implement me! */ //Only for test remove when implement this function return 0; } #endif /* HW_KBD_H */