aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ARDUINO_UNO/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/ARDUINO_UNO/board.h')
-rw-r--r--os/hal/boards/ARDUINO_UNO/board.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/os/hal/boards/ARDUINO_UNO/board.h b/os/hal/boards/ARDUINO_UNO/board.h
index f577ffd63..10c80710e 100644
--- a/os/hal/boards/ARDUINO_UNO/board.h
+++ b/os/hal/boards/ARDUINO_UNO/board.h
@@ -27,20 +27,37 @@
#define BOARD_ARDUINO_UNO
#define BOARD_NAME "Arduino Uno"
-/* All inputs except PB5 which has a LED connected */
+/*
+ * IO pins assignments.
+ */
+#define PORTB_LED1 5
+
+/*
+ * IO lines assignments.
+ */
+#define LINE_LED1 PAL_LINE(IOPORT2, 5U)
+
+/*
+ * Port B setup.
+ * All inputs except PB5 which has a LED connected.
+ */
#define VAL_DDRB 0x20
#define VAL_PORTB 0xFF
-/* All inputs with pull-ups */
+/*
+ * Port C setup.
+ * All inputs with pull-ups.
+ */
#define VAL_DDRC 0x00
#define VAL_PORTC 0xFF
-/* All inputs except PD1 (Serial TX0) */
+/*
+ * Port D setup.
+ * All inputs except PD1 (Serial TX0).
+ */
#define VAL_DDRD 0x02
#define VAL_PORTD 0xFF
-#define PORTB_LED1 5
-
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {