/* This function returns the current setting for GPIO retention in the hibernate module. */
bool HibernateGPIORetentionGet(void)
/* This function returns the current setting for GPIO retention in the hibernate module. */
bool HibernateGPIORetentionGet(void)
{
    if ((HWREG(HIB_CTL) & (HIB_CTL_RETCLR | HIB_CTL_VDD3ON)) ==
            (HIB_CTL_RETCLR | HIB_CTL_VDD3ON))
    {
        return (true);
    }
    return (false);
}