DK_TM4C129X: Add some GPIO pin definitions

This commit is contained in:
Gregory Nutt 2015-01-01 13:55:53 -06:00
parent 78d0d911b3
commit 3ff87bfda0
2 changed files with 58 additions and 8 deletions

View File

@ -156,24 +156,58 @@
#define BUTTON_SW4_BIT (1 << BUTTON_SW4)
/* Pin Multiplexing Disambiguation **************************************************/
/* USARTs */
/* UARTs
*
* UART0: PA0, PA1 (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
/* 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_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
************************************************************************************/

View File

@ -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
************************************************************************************/