For timers (driverlib\timers) TivaWare provides functions TimerEnable() and TimerDisable(). I did not see a corresponding TimerIsEnabled() function to query the enabled state of the timer. Such a function would probably look something like this (although this is **NOT** tested) --
//*****************************************************************************
//
//! Checks if timer(s) are enabled
//!
//! \param ui32Base is the base address of the timer module.
//! \param ui32Timer specifies the timer(s) to check; must be one of
//! \b TIMER_A, \b TIMER_B, or \b TIMER_BOTH.
//!
//! \return true if the specified timer(s) are enabled, false if disabled
//
//*****************************************************************************
bool TimerIsEnabled(uint32_t ui32Base, uint32_t ui32Timer)
{
uint32_t TmrOCtl = HWREG(ui32Base + TIMER_O_CTL);
uint32_t Expected = ui32Timer & (TIMER_CTL_TAEN | TIMER_CTL_TBEN);
ASSERT(_TimerBaseValid(ui32Base));
ASSERT((ui32Timer == TIMER_A) || (ui32Timer == TIMER_B) ||
(ui32Timer == TIMER_BOTH));
return ((TmrOCtl & Expected) == Expected) ? true : false;
}
Is there any possibility of that happening in a future version of TivaWare?