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: Bug in driverlib/gpio.c

Part Number: TM4C1294NCPDT


I'm using revision 2.1.3.156 of the Tiva Peripheral Driver Library.

In the driverlib/gpio.c file, the function GPIOPinWakeStatus at line 2328 returns the address of the GPIO_O_WAKESTAT register instead of the value of the register.

The existing function:

uint32_t
GPIOPinWakeStatus(uint32_t ui32Port)
{

     return(ui32Port + GPIO_O_WAKESTAT);
}

The fix is to use the HWREG macro.

Fixed version:

uint32_t
GPIOPinWakeStatus(uint32_t ui32Port)
{
    return(HWREG(ui32Port + GPIO_O_WAKESTAT));
}