This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: Tiva Pin_map.h definition question

Part Number: TM4C1294NCPDT

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.

 

 

 

  • Hello Doug,

    The pin map file is specifically for hardware features included in the device. If you want the Ethernet peripheral to control the LEDs you have to use the dedicated hardware pins which support that functionality which are limited to only a few choices and are outlined in the datasheet on Table 20-1:

    Therefore you cannot have the Ethernet peripheral control PG0 and PG4 as Ethernet LEDs and that is why there is no pin mapping available for that in our Driver Library.

    If you want to manually control the LEDs from an application standpoint without using the Ethernet peripheral, then you would just configure them as standard GPIO outputs.

    Best Regards,

    Ralph Jacobi