aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2016-11-21 22:26:49 +0100
committerGitHub <noreply@github.com>2016-11-21 22:26:49 +0100
commit7f7fe88e1473a15b46fe8a64c856932183f40047 (patch)
tree86fb27ce70abbb6a9e8a6504aedc84d70688fc76 /os/hal/boards
parent319c9f9ee259cc7ae05bbff952b149118e6dc032 (diff)
parentf6f6bf3918d0534606d5b9ecb48f22624e9369c0 (diff)
downloadChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.tar.gz
ChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.tar.bz2
ChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.zip
Merge pull request #100 from marcoveeneman/tiva-improvements
Tiva improvements
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h21
-rw-r--r--os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h17
2 files changed, 36 insertions, 2 deletions
diff --git a/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h b/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
index a59235a..7660c09 100644
--- a/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
+++ b/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.h
@@ -28,9 +28,10 @@
#define BOARD_NAME "Texas Instruments TM4C123G Launchpad"
/*
- * MCU type as defined in the TI header.
+ * MCU type and revision as defined in the TI header.
*/
#define PART_TM4C123GH6PM
+#define TARGET_IS_TM4C123_RB1
/*
* Board oscillators-related settings.
@@ -95,6 +96,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..57fd268 100644
--- a/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h
+++ b/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.h
@@ -36,9 +36,10 @@
//#define BOARD_PHY_RMII
/*
- * MCU type as defined in the TI header.
+ * MCU type and revision as defined in the TI header.
*/
#define PART_TM4C1294NCPDT
+#define TARGET_IS_TM4C129_RA0
/*
* Board oscillators-related settings.
@@ -184,6 +185,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.
*/