Hibernation Module
interrupt status can be found by calling ROM_HibernateIntStatus(). In the interrupt handler, all
pending interrupts must be cleared. Use the ROM_HibernateIntClear() function to clear pending
interrupts.
Finally, once the module is appropriately configured, the state saved, and the software applica-
tion is ready to hibernate, call the ROM_HibernateRequest() function. This will initiate the se-
quence to remove power from the processor. At a power-on reset, the software application can
use the ROM_HibernateIsActive() function to determine if the Hibernation module is already ac-
tive and therefore does not need to be enabled. This can provide a hint to the software that
the processor is waking from hibernation instead of a cold start. The software can then use the
ROM_HibernateIntStatus() and ROM_HibernateDataGet() functions to discover the cause of the
wake and to get the saved system state.
11.2 Functions
Functions
uint32_t ROM_HibernateBatCheckDone (void)
void ROM_HibernateBatCheckStart (void)
void ROM_HibernateClockConfig (uint32_t ui32Config)
void ROM_HibernateDataGet (uint32_t ∗pui32Data, uint32_t ui32Count)
void ROM_HibernateDataSet (uint32_t ∗pui32Data, uint32_t ui32Count)
void ROM_HibernateDisable (void)
void ROM_HibernateEnableExpClk (uint32_t ui32HibClk)
void ROM_HibernateIntClear (uint32_t ui32IntFlags)
void ROM_HibernateIntDisable (uint32_t ui32IntFlags)
void ROM_HibernateIntEnable (uint32_t ui32IntFlags)
uint32_t ROM_HibernateIntStatus (bool bMasked)
uint32_t ROM_HibernateIsActive (void)
uint32_t ROM_HibernateLowBatGet (void)
void ROM_HibernateLowBatSet (uint32_t ui32LowBatFlags)
void ROM_HibernateRequest (void)
void ROM_HibernateRTCDisable (void)
void ROM_HibernateRTCEnable (void)
uint32_t ROM_HibernateRTCGet (void)
void ROM_HibernateRTCSet (uint32_t ui32RTCValue)
uint32_t ROM_HibernateRTCSSGet (void)
uint32_t ROM_HibernateRTCTrimGet (void)
void ROM_HibernateRTCTrimSet (uint32_t ui32Trim)
uint32_t ROM_HibernateWakeGet (void)
void ROM_HibernateWakeSet (uint32_t ui32WakeFlags)
11.2.1 Function Documentation
11.2.1.1 ROM_HibernateBatCheckDone
Returns if a forced battery check has completed.
108 April 8, 2013