/* Selects the clock input for the Hibernation module. */
void HibernateClockSelect(unsigned long ulClockInput)
/* Selects the clock input for the Hibernation module. */
void HibernateClockSelect(unsigned long ulClockInput)
{
    ASSERT((ulClockInput == HIBERNATE_CLOCK_SEL_RAW) ||
           (ulClockInput == HIBERNATE_CLOCK_SEL_DIV128));
    HWREG(HIB_CTL) = ulClockInput | (HWREG(HIB_CTL) & ~HIB_CTL_CLKSEL);
    HibernateWriteComplete();
}