/* Gets the current interrupt status of the Hibernation module. */
unsigned long HibernateIntStatus(tBoolean bMasked)
/* Gets the current interrupt status of the Hibernation module. */
unsigned long HibernateIntStatus(tBoolean bMasked)
{
    if(bMasked == true)
    {
        return(HWREG(HIB_MIS) & 0xf);
    }
    else
    {
        return(HWREG(HIB_RIS) & 0xf);
    }
}