aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ARDUINO_NANO
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_NANO
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_NANO')
-rw-r--r--os/hal/boards/ARDUINO_NANO/board.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/os/hal/boards/ARDUINO_NANO/board.h b/os/hal/boards/ARDUINO_NANO/board.h
index 4db64ac8a..d23c3f4d0 100644
--- a/os/hal/boards/ARDUINO_NANO/board.h
+++ b/os/hal/boards/ARDUINO_NANO/board.h
@@ -24,23 +24,40 @@
/*
* Board identifier.
*/
-#define BOARD_ARDUINO_UNO
+#define BOARD_ARDUINO_NANO
#define BOARD_NAME "Arduino Nano"
-/* 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" {