aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-05-09 21:22:12 +0200
committerStephane D'Alu <sdalu@sdalu.com>2016-05-09 21:22:12 +0200
commit4b186ab80ec47d6551f3f8e65aceff98968958ef (patch)
tree5f5682c4d06385e6b48f3cc23412d298bacf64b6 /os/hal/boards
parent0e3e2f02d70ff9ce9fce20cec6198c110ea68537 (diff)
downloadChibiOS-Contrib-4b186ab80ec47d6551f3f8e65aceff98968958ef.tar.gz
ChibiOS-Contrib-4b186ab80ec47d6551f3f8e65aceff98968958ef.tar.bz2
ChibiOS-Contrib-4b186ab80ec47d6551f3f8e65aceff98968958ef.zip
Added Analogue Line A0..A5
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/NRF51-DK/board.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/hal/boards/NRF51-DK/board.h b/os/hal/boards/NRF51-DK/board.h
index 0f45fce..e47240b 100644
--- a/os/hal/boards/NRF51-DK/board.h
+++ b/os/hal/boards/NRF51-DK/board.h
@@ -66,6 +66,12 @@
#define IOPORT1_SPI_SS 24U
#define IOPORT1_I2C_SCL 7U
#define IOPORT1_I2C_SDA 30U
+#define IOPORT1_A0 1U
+#define IOPORT1_A1 2U
+#define IOPORT1_A2 3U
+#define IOPORT1_A3 4U
+#define IOPORT1_A4 5U
+#define IOPORT1_A5 6U
/*
* IO lines assignments.
@@ -88,6 +94,13 @@
#define LINE_SPI_SS PAL_LINE(IOPORT1, IOPORT1_SPI_SS)
#define LINE_I2C_SCL PAL_LINE(IOPORT1, IOPORT1_I2C_SCL)
#define LINE_I2C_SDA PAL_LINE(IOPORT1, IOPORT1_I2C_SDA)
+#define LINE_A0 PAL_LINE(IOPORT1, IOPORT1_A0)
+#define LINE_A1 PAL_LINE(IOPORT1, IOPORT1_A1)
+#define LINE_A2 PAL_LINE(IOPORT1, IOPORT1_A2)
+#define LINE_A3 PAL_LINE(IOPORT1, IOPORT1_A3)
+#define LINE_A4 PAL_LINE(IOPORT1, IOPORT1_A4)
+#define LINE_A5 PAL_LINE(IOPORT1, IOPORT1_A5)
+
#if !defined(_FROM_ASM_)
#ifdef __cplusplus