aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ARDUINO_MEGA
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2017-09-13 21:36:07 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2017-09-13 21:36:07 +0000
commit264c9a9286071ae98f2294e8f202b54291daf5f7 (patch)
tree51b5232830b96816e12dcfacd0ec53f0c7f64f97 /os/hal/boards/ARDUINO_MEGA
parent0151295d4f2a20e01048a9bef75129b2e133577b (diff)
downloadChibiOS-264c9a9286071ae98f2294e8f202b54291daf5f7.tar.gz
ChibiOS-264c9a9286071ae98f2294e8f202b54291daf5f7.tar.bz2
ChibiOS-264c9a9286071ae98f2294e8f202b54291daf5f7.zip
Add Line LED definition and comment.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10582 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ARDUINO_MEGA')
-rw-r--r--os/hal/boards/ARDUINO_MEGA/board.h110
1 files changed, 76 insertions, 34 deletions
diff --git a/os/hal/boards/ARDUINO_MEGA/board.h b/os/hal/boards/ARDUINO_MEGA/board.h
index 40a7b9fb1..c455598af 100644
--- a/os/hal/boards/ARDUINO_MEGA/board.h
+++ b/os/hal/boards/ARDUINO_MEGA/board.h
@@ -27,51 +27,93 @@
#define BOARD_ARDUINO_MEGA
#define BOARD_NAME "Arduino Mega"
-/* All inputs with pull-ups */
-#define VAL_DDRA 0x00
-#define VAL_PORTA 0xFF
+/*
+ * IO pins assignments.
+ */
+#define PORTB_LED1 7
-/* All inputs except PB7 which has a LED connected */
-#define VAL_DDRB 0x80
-#define VAL_PORTB 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRC 0x00
-#define VAL_PORTC 0xFF
+/*
+ * IO lines assignments.
+ */
+#define LINE_LED1 PAL_LINE(IOPORT2, 7U)
+
+/*
+ * Port A setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRA 0x00
+#define VAL_PORTA 0xFF
+
+/*
+ * Port B setup.
+ * All inputs except PB7 which has a LED connected.
+ */
+#define VAL_DDRB 0x80
+#define VAL_PORTB 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRD 0x00
-#define VAL_PORTD 0xFF
+/*
+ * Port C setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRC 0x00
+#define VAL_PORTC 0xFF
-/* All inputs except PE1 (Serial TX0) */
-#define VAL_DDRE 0x02
-#define VAL_PORTE 0xFF
+/*
+ * Port D setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRD 0x00
+#define VAL_PORTD 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRF 0x00
-#define VAL_PORTF 0xFF
+/*
+ * Port E setup.
+ * All inputs except PE1 (Serial TX0).
+ */
+#define VAL_DDRE 0x02
+#define VAL_PORTE 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRG 0x00
-#define VAL_PORTG 0xFF
+/*
+ * Port F setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRF 0x00
+#define VAL_PORTF 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRH 0x00
-#define VAL_PORTH 0xFF
+/*
+ * Port G setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRG 0x00
+#define VAL_PORTG 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRJ 0x00
-#define VAL_PORTJ 0xFF
+/*
+ * Port H setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRH 0x00
+#define VAL_PORTH 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRK 0x00
-#define VAL_PORTK 0xFF
+/*
+ * Port J setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRJ 0x00
+#define VAL_PORTJ 0xFF
-/* All inputs with pull-ups */
-#define VAL_DDRL 0x00
-#define VAL_PORTL 0xFF
+/*
+ * Port K setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRK 0x00
+#define VAL_PORTK 0xFF
-#define PORTB_LED1 7
+/*
+ * Port L setup.
+ * All inputs with pull-ups.
+ */
+#define VAL_DDRL 0x00
+#define VAL_PORTL 0xFF
#if !defined(_FROM_ASM_)
#ifdef __cplusplus