X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=boards%2Flpc-p2378%2Fhw%2Fhw_kbd.h;fp=boards%2Flpc-p2378%2Fhw%2Fhw_kbd.h;h=2c59dd580177d68ea5f3531ae9f304c85d9a0f54;hb=c15b00a9a85e2aa3fdc681e63d7e92851035b63a;hp=0000000000000000000000000000000000000000;hpb=fd8bd1af65d3eaea3040d74df3d76b51577a67a6;p=bertos.git diff --git a/boards/lpc-p2378/hw/hw_kbd.h b/boards/lpc-p2378/hw/hw_kbd.h new file mode 100644 index 00000000..2c59dd58 --- /dev/null +++ b/boards/lpc-p2378/hw/hw_kbd.h @@ -0,0 +1,72 @@ +/** + * \file + * + * + * \brief Keyboard hardware-specific definitions + * + * \version $Id: hw_kbd.h 2649 2009-04-23 12:51:28Z duplo $ + * + * \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 */