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.

EK-TM4C123GXL: GPIOIntStatus()

Part Number: EK-TM4C123GXL

I pulled the info from the peripheral guide regarding GPIOIntStatus(). It talks about masked or raw interrupt status, depending on bMasked. Which mask? Would that be pins identified in the GPIOIntEnable() function? Examples seem to be split on whether bMasked is false or true.

Thank you,

John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GPIOIntStatus

Gets interrupt status for the specified GPIO port.

Prototype: uint32_t GPIOIntStatus(uint32_t ui32Port, bool bMasked)

Parameters:

ui32Port is the base address of the GPIO port.

bMasked specifies whether masked or raw interrupt status is returned.

Description: If bMasked is set as true, then the masked interrupt status is returned; otherwise, the raw interrupt status is returned.

  • Hello John,

    I am not aware of examples not using the masked return. It is always recommended to use the masked status but for debug the raw status might be useful on rare occasions to peel back a layer in the hardware.

    The masked status provides you information back based on what interrupts you've enabled with the interrupt controller. So you are only getting information relevant to what you have configured.

    From the datasheet:

    As the name implies, the GPIOMIS register only shows interrupt conditions that are allowed to be passed to the interrupt controller. The GPIORIS register indicates that a GPIO pin meets the conditions for an interrupt, but has not necessarily been sent to the interrupt controller.

    Best Regards,

    Ralph Jacobi