--- /dev/null
+/*!
+ * \file
+ * <!--
+ * Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2000 Bernardo Innocenti
+ * All Rights Reserved.
+ * -->
+ *
+ * \brief Buzzer hardware-specific definitions
+ *
+ * \version $Id$
+ *
+ * \author Francesco Sacchi <batt@develer.com>
+ */
+
+/*#*
+ *#* $Log$
+ *#* Revision 1.1 2006/02/10 12:31:03 bernie
+ *#* Add templates for hw definitions.
+ *#*
+ *#*/
+
+#ifndef HW_BUZZER_H
+#define HW_BUZZER_H
+
+#define BUZZER_BIT BV(1)
+#define IS_BUZZER_ON 0
+#define BUZZER_HW_INIT do { } while (0)
+#define BUZZER_ON do { } while (0)
+#define BUZZER_OFF do { } while (0)
+
+#endif /* HW_BUZZER_H */
--- /dev/null
+/*!
+ * \file
+ * <!--
+ * Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2000 Bernardo Innocenti
+ * All Rights Reserved.
+ * -->
+ *
+ * \brief Keyboard hardware-specific definitions
+ *
+ * \version $Id$
+ *
+ * \author Francesco Sacchi <batt@develer.com>
+ * \author Stefano Fedrigo <a@develer.com>
+ */
+
+/*#*
+ *#* $Log$
+ *#* Revision 1.1 2006/02/10 12:31:03 bernie
+ *#* Add templates for hw definitions.
+ *#*
+ *#*/
+
+#ifndef HW_KBD_H
+#define HW_KBD_H
+
+
+#include "kbd_map.h"
+#include <cfg/macros.h>
+#include <cfg/debug.h>
+
+
+ /*!
+ * \name CPU ports <-> switches assignement
+ * @{
+ */
+
+#define K_RPT_MASK (K_UP | K_DOWN | K_OK | K_CANCEL)
+/*@}*/
+
+
+#define KBD_HW_INIT \
+ do { \
+ } while (0)
+
+
+/*!
+ * Read the keyboard ports and return the mask of
+ * depressed keys.
+ */
+INLINE keymask_t kbd_readkeys(void)
+{
+ keymask_t key = 0;
+
+ uint32_t mask = 0xF;
+
+ if (!(mask & 1))
+ key |= K_OK;
+ if (!(mask & 2))
+ key |= K_CANCEL;
+ if (!(mask & 4))
+ key |= K_UP;
+ if (!(mask & 8))
+ key |= K_DOWN;
+
+ return key;
+}
+
+#endif /* HW_KBD_H */
--- /dev/null
+/*!
+ * \file
+ * <!--
+ * Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2000 Bernardo Innocenti
+ * All Rights Reserved.
+ * -->
+ *
+ * \brief Keyboard map definitions.
+ *
+ * \version $Id$
+ *
+ * \author Francesco Sacchi <batt@develer.com>
+ * \author Stefano Fedrigo <a@develer.com>
+ */
+
+/*#*
+ *#* $Log$
+ *#* Revision 1.1 2006/02/10 12:31:03 bernie
+ *#* Add templates for hw definitions.
+ *#*
+ *#*/
+
+#ifndef HW_KBD_MAP_H
+#define HW_KBD_MAP_H
+
+#include <cfg/macros.h>
+
+
+/*!
+ * Type for keyboard mask.
+ */
+typedef uint16_t keymask_t;
+
+/*!
+ * \name Keycodes.
+ */
+/*@{*/
+#define K_UP BV(0)
+#define K_DOWN BV(1)
+#define K_OK BV(2)
+#define K_CANCEL BV(3)
+
+#define K_REPEAT BV(14) /*!< This is a repeated keyevent. */
+#define K_TIMEOUT BV(15) /*!< Fake key event for timeouts. */
+/*@}*/
+
+
+#endif /* HW_KBD_MAP_H */