aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:33:58 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:33:58 +0100
commitd10aa9e7a136e41377f40a774fdf3bffb59b358b (patch)
tree3a0da0046a8e05148f0037a3f0c5239e9f17de0a /os/hal/boards
parent548c3592db460bad5803232b36f22e967fc61c2b (diff)
downloadChibiOS-Contrib-d10aa9e7a136e41377f40a774fdf3bffb59b358b.tar.gz
ChibiOS-Contrib-d10aa9e7a136e41377f40a774fdf3bffb59b358b.tar.bz2
ChibiOS-Contrib-d10aa9e7a136e41377f40a774fdf3bffb59b358b.zip
Defined lines in board files.
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h18
-rw-r--r--os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h14
2 files changed, 32 insertions, 0 deletions
diff --git a/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h b/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
index a59235a..c337e21 100644
--- a/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
+++ b/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
@@ -95,6 +95,24 @@
#define GPIOF_PIN7 7
/*
+ * IO lines assignments.
+ */
+#define LINE_UART0_RX PAL_LINE(GPIOA, 0U)
+#define LINE_UART0_TX PAL_LINE(GPIOA, 1U)
+#define LINE_SSI0_CLK PAL_LINE(GPIOA, 2U)
+#define LINE_SSI0_RX PAL_LINE(GPIOA, 4U)
+#define LINE_SSI0_TX PAL_LINE(GPIOA, 5U)
+
+#define LINE_I2C0_SCL PAL_LINE(GPIOB, 2U)
+#define LINE_I2C0_SDA PAL_LINE(GPIOB, 3U)
+
+#define LINE_SW2 PAL_LINE(GPIOF, 0U)
+#define LINE_LED_RED PAL_LINE(GPIOF, 1U)
+#define LINE_LED_BLUE PAL_LINE(GPIOF, 2U)
+#define LINE_LED_GREEN PAL_LINE(GPIOF, 3U)
+#define LINE_SW1 PAL_LINE(GPIOF, 4U)
+
+/*
* I/O ports initial setup, this configuration is established soon after reset
* in the initialization code.
*/
diff --git a/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h b/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h
index 9012f7c..982fb1b 100644
--- a/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h
+++ b/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h
@@ -184,6 +184,20 @@
#define GPIOQ_PIN7 7
/*
+ * IO lines assignments.
+ */
+#define LINE_UART0_RX PAL_LINE(GPIOA, 0U)
+#define LINE_UART0_TX PAL_LINE(GPIOA, 1U)
+
+#define LINE_LED0 PAL_LINE(GPIOF, 0U)
+#define LINE_LED1 PAL_LINE(GPIOF, 4U)
+
+#define LINE_LED2 PAL_LINE(GPION, 0U)
+#define LINE_LED3 PAL_LINE(GPION, 1U)
+
+#define LINE_SW1 PAL_LINE(GPIOJ, 0U)
+
+/*
* I/O ports initial setup, this configuration is established soon after reset
* in the initialization code.
*/