/* Returns either the enabled or raw stimer interrupt status. 
The return value will be the logical OR of one or more of the following values: */
uint32_t am_hal_stimer_int_status_get(bool bEnabledOnly)
/* Returns either the enabled or raw stimer interrupt status. 
The return value will be the logical OR of one or more of the following values: */
uint32_t am_hal_stimer_int_status_get(bool bEnabledOnly)
{
    uint32_t ui32RetVal = AM_REGn(CTIMER, 0, STMINTSTAT);
    if ( bEnabledOnly )
    {
        ui32RetVal &= AM_REGn(CTIMER, 0, STMINTEN);
    }
    return ui32RetVal;
}