/* Read the state of the wdt interrupt status.  */
uint32_t am_hal_wdt_int_status_get(bool bEnabledOnly)
/* Read the state of the wdt interrupt status.  */
uint32_t am_hal_wdt_int_status_get(bool bEnabledOnly)
{
    if (bEnabledOnly)
    {
        uint32_t u32RetVal = AM_REG(WDT, INTSTAT);
        return u32RetVal & AM_REG(WDT, INTEN);
    }
    else
    {
        return AM_REG(WDT, INTSTAT);
    }
}