/* brief SDIF send initialize 80 clocks for SD card after initial param base SDIF peripheral base address. param timeout value  */
bool SDIF_SendCardActive(SDIF_Type *base, uint32_t timeout)
/* brief SDIF send initialize 80 clocks for SD card after initial param base SDIF peripheral base address. param timeout value  */
bool SDIF_SendCardActive(SDIF_Type *base, uint32_t timeout)
{
    bool enINT = false;
    if ((base->CTRL & SDIF_CTRL_INT_ENABLE_MASK) == SDIF_CTRL_INT_ENABLE_MASK)
    {
        enINT = true;
        base->CTRL &= ~SDIF_CTRL_INT_ENABLE_MASK;
    }
    SDIF_ClearInterruptStatus(base, kSDIF_CommandDone);
    SDIF_EnableInterrupt(base, kSDIF_CommandDone);
    if (SDIF_SetCommandRegister(base, SDIF_CMD_SEND_INITIALIZATION_MASK, 0UL, timeout) != kStatus_Success)
    {
        return false;
    }
    while ((SDIF_GetInterruptStatus(base) & (uint32_t)kSDIF_CommandDone) != (uint32_t)kSDIF_CommandDone)
    {
    }
    SDIF_ClearInterruptStatus(base, kSDIF_CommandDone);
    SDIF_DisableInterrupt(base, kSDIF_CommandDone);
    if (enINT)
    {
        base->CTRL |= SDIF_CTRL_INT_ENABLE_MASK;
    }
    return true;
}