/* Returns the flags representing the wake configuration for the Hibernation module. The return value will be a combination of the following flags: */
unsigned long HibernateWakeGet(void)
/* Returns the flags representing the wake configuration for the Hibernation module. The return value will be a combination of the following flags: */
unsigned long HibernateWakeGet(void)
{
    return(HWREG(HIB_CTL) & (HIBERNATE_WAKE_PIN | HIBERNATE_WAKE_RTC));
}