From d87853dac53ee622f11697676be689b28d81a4cf Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 1 Jan 2015 13:55:53 -0600 Subject: DK_TM4C129X: Add some GPIO pin definitions --- nuttx/configs/dk-tm4c129x/include/board.h | 50 ++++++++++++++++++++++++----- nuttx/configs/dk-tm4c129x/src/dk-tm4c129x.h | 16 +++++++++ 2 files changed, 58 insertions(+), 8 deletions(-) diff --git a/nuttx/configs/dk-tm4c129x/include/board.h b/nuttx/configs/dk-tm4c129x/include/board.h index 7c9c4f85d..b9f23ac76 100644 --- a/nuttx/configs/dk-tm4c129x/include/board.h +++ b/nuttx/configs/dk-tm4c129x/include/board.h @@ -156,24 +156,58 @@ #define BUTTON_SW4_BIT (1 << BUTTON_SW4) /* Pin Multiplexing Disambiguation **************************************************/ -/* USARTs */ +/* UARTs + * + * UART0: PA0, PA1 (fixed configuration) + */ + +/* SSI: + * + * SSI0: PA2-5 are used for SSI0 to the second booster pack (fixed configuration) + * SSI3: PF0/PF4-5/PH4/PQ0-2 are used for the SPI flash (on-board and SD card). + * PH4 selects the SD card and PQ1 selects the on-board SPI flash. + */ + +#define GPIO_SSI3_CLK GPIO_SSI3_CLK_2 +#define GPIO_SSI3_FSS GPIO_SSI3_FSS_2 +#define GPIO_SSI3_XDAT0 GPIO_SSI3_XDAT0_2 +#define GPIO_SSI3_XDAT1 GPIO_SSI3_XDAT1_1 +#define GPIO_SSI3_XDAT2 GPIO_SSI3_XDAT2_1 +#define GPIO_SSI3_XDAT3 GPIO_SSI3_XDAT3_1 + +/* I2C: + * + * I2C6: PB6-7 are used for I2C to the TMP100 and the EM connector. + */ + +#define GPIO_I2C6_SCL GPIO_I2C6_SCL_2 +#define GPIO_I2C6_SDA GPIO_I2C6_SDA_2 + +/* USB: + * + * PB0-1/PD6-7/PL6-7 are used for USB (Only PD6-7 are not fixed configuration) + */ -#define GPIO_UART1_CTS GPIO_UART1_CTS_1 -#define GPIO_UART1_RTS GPIO_UART1_RTS_1 -#define GPIO_UART1_RX GPIO_UART1_RX_1 -#define GPIO_UART1_TX GPIO_UART1_TX_1 +#define GPIO_USB0_EPEN GPIO_USB0_EPEN_3 +#define GPIO_USB0_PFLT GPIO_USB0_PFLT_2 /* Ethernet LEDs * - * PK4/EN0RXD3/LED0 - * PK6/EN0TXD2/LED1 - * PF1/LED2 + * PF1/PK4/PK6 are used for Ethernet LEDs. + * PK4/EN0RXD3/LED0 + * PK6/EN0TXD2/LED1 + * PF1/LED2 */ # define GPIO_EN0_LED0 GPIO_EN0_LED0_2 # define GPIO_EN0_LED1 GPIO_EN0_LED1_2 # define GPIO_EN0_LED2 GPIO_EN0_LED2_1 +/* LCD + * + * PF6-7/PJ6/PS4-5/PR0-7 are used for the LCD (fixed configuration). + */ + /************************************************************************************ * Public Function Prototypes ************************************************************************************/ diff --git a/nuttx/configs/dk-tm4c129x/src/dk-tm4c129x.h b/nuttx/configs/dk-tm4c129x/src/dk-tm4c129x.h index 7a8b7f6d8..148b56981 100644 --- a/nuttx/configs/dk-tm4c129x/src/dk-tm4c129x.h +++ b/nuttx/configs/dk-tm4c129x/src/dk-tm4c129x.h @@ -100,6 +100,22 @@ #define IRQ_SW4 TIVA_IRQ_GPIOP_1 +/* SPI Chip selects ****************************************************************/ +/* SSI0: PA3 is used for SSI0 chip select to the second booster pack + * SSI3: PH4 selects the SD card and PQ1 selects the on-board SPI flash. + */ + +#define GPIO_BSTR_CS (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \ + GPIO_VALUE_ONE | GPIO_PORTA | GPIO_PIN_3) +#define GPIO_SD_CS (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \ + GPIO_VALUE_ONE | GPIO_PORTH | GPIO_PIN_4) + +/* Speaker outputs *****************************************************************/ +/* PB2/PD4 are used for the speaker output */ + +/* Touchscreen *********************************************************************/ +/* PE7/PP7/PT2-3 are used for the touch screen */ + /************************************************************************************ * Public Functions ************************************************************************************/ -- cgit v1.2.3