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: How to set ethernet link and activity LED to different GPIO

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software:

Hello,

How can I set the ethernet link and activity lights to different GPIO other than PF0 and PF0?

Tivaware 2.2.0.295 with net_s2e example on EK-TM4C1294XL board.

Thanks,

Keith

  • Hi,

      You can refer to to C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\drivers\pinout.c file. Look for the below snippet of code on Ethernet LED configuration.

      For example, by default it is using PF0 for EN0LED0. However, you can change this from PF0 to PK4. Refer to the datasheet. 

    //
    // PF0/PF4 are used for Ethernet LEDs.
    //
    if(bEthernet)
    {
    //
    // this app wants to configure for ethernet LED function.
    //
    MAP_GPIOPinConfigure(GPIO_PF0_EN0LED0);
    MAP_GPIOPinConfigure(GPIO_PF4_EN0LED1);

    MAP_GPIOPinTypeEthernetLED(GPIO_PORTF_BASE, GPIO_PIN_0 | GPIO_PIN_4);
    }
    else
    {