/* Get the state of one GPIO polarity bit.  */
bool am_hal_gpio_int_polarity_bit_get(uint32_t ui32BitNum)
/* Get the state of one GPIO polarity bit.  */
bool am_hal_gpio_int_polarity_bit_get(uint32_t ui32BitNum)
{
    return (AM_REGVAL(AM_HAL_GPIO_CFG(ui32BitNum)) &
            AM_HAL_GPIO_POL_M(ui32BitNum));
}