/* Exit from Hybrid sleep and deep Power down function.  */
void HBI_ExitHSAndDPD(void)
/* Exit from Hybrid sleep and deep Power down function.  */
void HBI_ExitHSAndDPD(void)
{
    int32_t i32TimeOutCnt = HBI_TIMEOUT;
    HBI->CMD = HBI_CMD_EXIT_HS_PD;
    g_HBI_i32ErrCode = 0;
    while (HBI->CMD != HBI_CMD_HRAM_IDLE)
    {
        if (i32TimeOutCnt-- <= 0)
        {
            g_HBI_i32ErrCode = HBI_TIMEOUT_ERR;
            break;
        }
    }
}