sdio: remove old files
This commit is contained in:
parent
90f126e400
commit
2f35c3b9ce
|
@ -1,39 +0,0 @@
|
|||
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32L1)
|
||||
|
||||
#include "stm32_gpio_af.h"
|
||||
#include "SDIO.h"
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
uint8_t SDIOClass::begin() {
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
|
||||
__HAL_RCC_SDIO_CLK_ENABLE();
|
||||
|
||||
stm32AfSDIO4BitInit(SDIO, NULL, 0, NULL, 0,
|
||||
NULL, 0, NULL, 0, NULL, 0, NULL, 0);
|
||||
|
||||
handle.Instance = SDIO;
|
||||
handle.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;
|
||||
handle.Init.ClockBypass = SDIO_CLOCK_BYPASS_DISABLE;
|
||||
handle.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_DISABLE;
|
||||
handle.Init.BusWide = SDIO_BUS_WIDE_1B;
|
||||
handle.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
|
||||
|
||||
handle.Init.ClockDiv = 0;
|
||||
|
||||
error = HAL_SD_Init(&handle, &SDCardInfo);
|
||||
if (error != SD_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
error = HAL_SD_WideBusOperation_Config(&handle, SDIO_BUS_WIDE_4B);
|
||||
|
||||
if (error != SD_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,39 +0,0 @@
|
|||
#if defined(STM32F7) || defined(STM32L4)
|
||||
|
||||
#include "stm32_gpio_af.h"
|
||||
#include "SDIO.h"
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
uint8_t SDIOClass::begin() {
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
|
||||
__HAL_RCC_SDMMC1_CLK_ENABLE();
|
||||
|
||||
stm32AfSDIO4BitInit(SDMMC1, NULL, 0, NULL, 0,
|
||||
NULL, 0, NULL, 0, NULL, 0, NULL, 0);
|
||||
|
||||
handle.Instance = SDMMC1;
|
||||
handle.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING;
|
||||
handle.Init.ClockBypass = SDMMC_CLOCK_BYPASS_DISABLE;
|
||||
handle.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE;
|
||||
handle.Init.BusWide = SDMMC_BUS_WIDE_1B;
|
||||
handle.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE;
|
||||
|
||||
handle.Init.ClockDiv = 0;
|
||||
|
||||
error = HAL_SD_Init(&handle, &SDCardInfo);
|
||||
if (error != SD_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
error = HAL_SD_WideBusOperation_Config(&handle, SDMMC_BUS_WIDE_4B);
|
||||
|
||||
if (error != SD_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,29 +0,0 @@
|
|||
#include "stm32_build_defines.h"
|
||||
|
||||
#ifdef STM32F0
|
||||
|
||||
#endif
|
||||
#ifdef STM32F1
|
||||
#include "stm32f1xx_hal_sd.c"
|
||||
#endif
|
||||
#ifdef STM32F2
|
||||
#include "stm32f2xx_hal_sd.c"
|
||||
#endif
|
||||
#ifdef STM32F3
|
||||
|
||||
#endif
|
||||
#ifdef STM32F4
|
||||
#include "stm32f4xx_hal_sd.c"
|
||||
#endif
|
||||
#ifdef STM32F7
|
||||
#include "stm32f7xx_hal_sd.c"
|
||||
#endif
|
||||
#ifdef STM32L0
|
||||
|
||||
#endif
|
||||
#ifdef STM32L1
|
||||
#include "stm32l1xx_hal_sd.c"
|
||||
#endif
|
||||
#ifdef STM32L4
|
||||
#include "stm32l4xx_hal_sd.c"
|
||||
#endif
|
|
@ -1,29 +0,0 @@
|
|||
#include "stm32_build_defines.h"
|
||||
|
||||
#ifdef STM32F0
|
||||
|
||||
#endif
|
||||
#ifdef STM32F1
|
||||
#include "stm32f1xx_ll_sdmmc.c"
|
||||
#endif
|
||||
#ifdef STM32F2
|
||||
#include "stm32f2xx_ll_sdmmc.c"
|
||||
#endif
|
||||
#ifdef STM32F3
|
||||
|
||||
#endif
|
||||
#ifdef STM32F4
|
||||
#include "stm32f4xx_ll_sdmmc.c"
|
||||
#endif
|
||||
#ifdef STM32F7
|
||||
#include "stm32f7xx_ll_sdmmc.c"
|
||||
#endif
|
||||
#ifdef STM32L0
|
||||
|
||||
#endif
|
||||
#ifdef STM32L1
|
||||
#include "stm32l1xx_ll_sdmmc.c"
|
||||
#endif
|
||||
#ifdef STM32L4
|
||||
#include "stm32l4xx_ll_sdmmc.c"
|
||||
#endif
|
Loading…
Reference in New Issue