aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR-ATmega128-GCC/board.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-02-29 14:55:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-02-29 14:55:04 +0000
commit4ea04cc357408d68750e5b4a9d834c5a5d015fa7 (patch)
tree0115aa895f27086860026631f4f80095a24d4a36 /demos/AVR-ATmega128-GCC/board.h
parent64e798c8cd4ae5e6ce18290f8452099ec90ebd14 (diff)
downloadChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.tar.gz
ChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.tar.bz2
ChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@208 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR-ATmega128-GCC/board.h')
-rw-r--r--demos/AVR-ATmega128-GCC/board.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/demos/AVR-ATmega128-GCC/board.h b/demos/AVR-ATmega128-GCC/board.h
index ee0e9b624..a29ee8664 100644
--- a/demos/AVR-ATmega128-GCC/board.h
+++ b/demos/AVR-ATmega128-GCC/board.h
@@ -84,6 +84,25 @@
#define VAL_DDRG 0x00
#define VAL_PORTG 0x07
+#define PORTA_BUTTON1 (1 << 0)
+#define PORTA_BUTTON2 (1 << 1)
+#define PORTA_BUTTON3 (1 << 2)
+#define PORTA_BUTTON4 (1 << 3)
+#define PORTA_BUTTON5 (1 << 4)
+#define PORTA_DALLAS (1 << 5)
+#define PORTA_RELAY (1 << 6)
+
+#define PORTC_44780_RS (1 << 0)
+#define PORTC_44780_RW (1 << 1)
+#define PORTC_44780_E (1 << 2)
+#define PORTC_44780_D4 (1 << 4)
+#define PORTC_44780_D5 (1 << 5)
+#define PORTC_44780_D6 (1 << 6)
+#define PORTC_44780_D7 (1 << 7)
+
+#define PORTE_BUZZ1 (1 << 4)
+#define PORTE_BUZZ2 (1 << 5)
+
void hwinit(void);
#endif /* _BOARD_H_ */