aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2016-06-06 20:00:18 -0300
committerFabio Utzig <utzig@utzig.org>2016-06-06 20:00:18 -0300
commit5f073a82b08a8b04c91d7e2d95aca2abdae26e66 (patch)
tree4cdbacf186e016cf008875bbc3923cc07714cf7c /os/hal/boards
parent5d20ce4595a564c1f98a31445f5015de41e1e25f (diff)
parent56642a175043e41d57900eef0bf01051536da217 (diff)
downloadChibiOS-Contrib-5f073a82b08a8b04c91d7e2d95aca2abdae26e66.tar.gz
ChibiOS-Contrib-5f073a82b08a8b04c91d7e2d95aca2abdae26e66.tar.bz2
ChibiOS-Contrib-5f073a82b08a8b04c91d7e2d95aca2abdae26e66.zip
Merge pull request #80 from sdalu/ain_pins
Added Analog input/ref pins
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/NRF51-DK/board.h30
-rw-r--r--os/hal/boards/WVSHARE_BLE400/board.h30
2 files changed, 60 insertions, 0 deletions
diff --git a/os/hal/boards/NRF51-DK/board.h b/os/hal/boards/NRF51-DK/board.h
index e47240b..67e1724 100644
--- a/os/hal/boards/NRF51-DK/board.h
+++ b/os/hal/boards/NRF51-DK/board.h
@@ -44,6 +44,16 @@
#define SPI_SS 24
#define I2C_SCL 7
#define I2C_SDA 30
+#define AIN0 26
+#define AIN1 27
+#define AIN2 1
+#define AIN3 2
+#define AIN4 3
+#define AIN5 4
+#define AIN6 5
+#define AIN7 6
+#define AREF0 0
+#define AREF1 6
/*
* IO pins assignments.
@@ -72,6 +82,16 @@
#define IOPORT1_A3 4U
#define IOPORT1_A4 5U
#define IOPORT1_A5 6U
+#define IOPORT1_AIN0 26U
+#define IOPORT1_AIN1 27U
+#define IOPORT1_AIN2 1U
+#define IOPORT1_AIN3 2U
+#define IOPORT1_AIN4 3U
+#define IOPORT1_AIN5 4U
+#define IOPORT1_AIN6 5U
+#define IOPORT1_AIN7 6U
+#define IOPORT1_AREF0 0U
+#define IOPORT1_AREF1 6U
/*
* IO lines assignments.
@@ -100,6 +120,16 @@
#define LINE_A3 PAL_LINE(IOPORT1, IOPORT1_A3)
#define LINE_A4 PAL_LINE(IOPORT1, IOPORT1_A4)
#define LINE_A5 PAL_LINE(IOPORT1, IOPORT1_A5)
+#define LINE_AIN0 PAL_LINE(IOPORT1, IOPORT1_AIN0)
+#define LINE_AIN1 PAL_LINE(IOPORT1, IOPORT1_AIN1)
+#define LINE_AIN2 PAL_LINE(IOPORT1, IOPORT1_AIN2)
+#define LINE_AIN3 PAL_LINE(IOPORT1, IOPORT1_AIN3)
+#define LINE_AIN4 PAL_LINE(IOPORT1, IOPORT1_AIN4)
+#define LINE_AIN5 PAL_LINE(IOPORT1, IOPORT1_AIN5)
+#define LINE_AIN6 PAL_LINE(IOPORT1, IOPORT1_AIN6)
+#define LINE_AIN7 PAL_LINE(IOPORT1, IOPORT1_AIN7)
+#define LINE_AREF0 PAL_LINE(IOPORT1, IOPORT1_AREF0)
+#define LINE_AREF1 PAL_LINE(IOPORT1, IOPORT1_AREF1)
#if !defined(_FROM_ASM_)
diff --git a/os/hal/boards/WVSHARE_BLE400/board.h b/os/hal/boards/WVSHARE_BLE400/board.h
index fd52467..5a4e8f0 100644
--- a/os/hal/boards/WVSHARE_BLE400/board.h
+++ b/os/hal/boards/WVSHARE_BLE400/board.h
@@ -42,6 +42,16 @@
#define SPI_SS 30
#define I2C_SCL 1
#define I2C_SDA 0
+#define AIN0 26
+#define AIN1 27
+#define AIN2 1
+#define AIN3 2
+#define AIN4 3
+#define AIN5 4
+#define AIN6 5
+#define AIN7 6
+#define AREF0 0
+#define AREF1 6
/*
* IO pins assignments.
@@ -63,6 +73,16 @@
#define IOPORT1_SPI_SS 30U
#define IOPORT1_I2C_SCL 1U
#define IOPORT1_I2C_SDA 0U
+#define IOPORT1_AIN0 26U
+#define IOPORT1_AIN1 27U
+#define IOPORT1_AIN2 1U
+#define IOPORT1_AIN3 2U
+#define IOPORT1_AIN4 3U
+#define IOPORT1_AIN5 4U
+#define IOPORT1_AIN6 5U
+#define IOPORT1_AIN7 6U
+#define IOPORT1_AREF0 0U
+#define IOPORT1_AREF1 6U
/*
* IO lines assignments.
@@ -84,6 +104,16 @@
#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_AIN0 PAL_LINE(IOPORT1, IOPORT1_AIN0)
+#define LINE_AIN1 PAL_LINE(IOPORT1, IOPORT1_AIN1)
+#define LINE_AIN2 PAL_LINE(IOPORT1, IOPORT1_AIN2)
+#define LINE_AIN3 PAL_LINE(IOPORT1, IOPORT1_AIN3)
+#define LINE_AIN4 PAL_LINE(IOPORT1, IOPORT1_AIN4)
+#define LINE_AIN5 PAL_LINE(IOPORT1, IOPORT1_AIN5)
+#define LINE_AIN6 PAL_LINE(IOPORT1, IOPORT1_AIN6)
+#define LINE_AIN7 PAL_LINE(IOPORT1, IOPORT1_AIN7)
+#define LINE_AREF0 PAL_LINE(IOPORT1, IOPORT1_AREF0)
+#define LINE_AREF1 PAL_LINE(IOPORT1, IOPORT1_AREF1)
#if !defined(_FROM_ASM_)
#ifdef __cplusplus