I have a Tiva running TI RTOS using the following configuration:
ccs 6.1.2
TIRTOS 2.16.0.08,
compiler 5.2.7 and
XDC 3.31.1333
TM4C1294NCPDT
We have a new board that changed the Ethernet LEDs from PF0 = Green LED and PF4 = Yellow LED to the new board uses PG0 for Green and PG4 for Yellow.
I know in order to change the pin assignment in the function void EK_TM4C129XL.c function EK_TM4C1294XL_initEMAC(void).
GPIOPinConfigure(GPIO_PF0_EN0LED0); /* EK_TM4C1294XL_USR_D3 */ // see ROM_user Guide P 219/650
GPIOPinConfigure(GPIO_PF4_EN0LED1); /* EK_TM4C1294XL_USR_D4 */ // see ROM_user Guide P 219/650
GPIOPinTypeEthernetLED(GPIO_PORTF_BASE, GPIO_PIN_0 | GPIO_PIN_4);
Where in pin_map.h
#define GPIO_PF0_EN0LED0 0x00050005
#define GPIO_PF4_EN0LED1 0x00051005
I have the documentation for the function GPIOPinConfigure() but what I don’t understand is the argument.
My specific question is what changes do I need to make to the code to go from using PF0 and PF4 to PG0 and PG4? I assume it’s something like this:
GPIOPinConfigure(GPIO_PG0_EN0LED0); /* EK_TM4C1294XL_USR_D3 */
GPIOPinConfigure(GPIO_PG4_EN0LED1); /* EK_TM4C1294XL_USR_D4 */
GPIOPinTypeEthernetLED(GPIO_PORTG_BASE, GPIO_PIN_0 | GPIO_PIN_4);
Where I would have to add in pin_map.h
#define GPIO_PG0_EN0LED0 0x????????????
#define GPIO_PG4_EN0LED1 0x????????????
I did not find in the documentation how to define the pins in pin_map.h so my general question is where in the documentation is the pin maps described??? So my general question is where is 32 bit values for the pin maps described so I can understand it in the future. So understanding the definitions in the pin_map.h file would be my general question.