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: EPI PINMUX Tool

Part Number: TM4C1294NCPDT

Hello,

When setting up  the TM4C129 for EPI, several code examples state the following ... 

//
// Configure the GPIO pins for EPI mode. All the EPI pins require 8mA
// drive strength in push-pull operation. This step also gives control of
// pins to the EPI module.
//
GPIOPinTypeEPI(GPIO_PORTA_BASE, EPI_PORTA_PINS);

HWREG(GPIO_PORTA_BASE+GPIO_O_DR8R) |= EPI_PORTA_PINS;

However when using the TI PinMux tool I get the following.... 

//
// Configure the GPIO Pin Mux for PH0
// for EPI0S0
//
MAP_GPIOPinConfigure(GPIO_PH0_EPI0S0);
GPIOPinTypeEPI(GPIO_PORTH_BASE, GPIO_PIN_0);

 

Are HWREG and MAP_GPIOPinConfigure performing the same function?

Thank you,

Victor

  • Not really, the call to HWREG() call is a write to set the pins to 8mA buffer. It is doing part of the same function as the call to GPIOPinTypeEPI(). The HWREG() calls are direct register writes. You can determine their function by looking at the description of the register in the datasheet. The GPIO... functions can be found in the file: "C:\ti\TivaWare_C_Series-2.1.4.178\driverlib\gpio.c" These function usually evolve down to one or more HWREG calls.
  • Hi Bob,

    Thanks for directing me to the appropriate code. It clarified matters.

    Victor