/** * @brief Sets the power status of the controller. * @param SDIO_PowerState: new state of the Power state. * This parameter can be one of the following values: * @arg SDIO_PowerState_OFF: SDIO Power OFF * @arg SDIO_PowerState_ON: SDIO Power ON * @retval None */ void SDIO_SetPowerState(uint32_t SDIO_PowerState) { /* Check the parameters */ assert_param(IS_SDIO_POWER_STATE(SDIO_PowerState)); SDIO->POWER = SDIO_PowerState; }
/******************************************************************************* * Function Name : SDIO_SetPowerState * Description : Sets the power status of the controller. * Input : SDIO_PowerState: new state of the Power state. * This parameter can be one of the following values: * - SDIO_PowerState_OFF * - SDIO_PowerState_ON * Output : None * Return : None *******************************************************************************/ void SDIO_SetPowerState(u32 SDIO_PowerState) { /* Check the parameters */ assert_param(IS_SDIO_POWER_STATE(SDIO_PowerState)); SDIO->POWER &= PWR_PWRCTRL_MASK; SDIO->POWER |= SDIO_PowerState; }