Add SDIO for F7 (#5604)

This commit is contained in:
conkerkh 2018-04-03 15:03:54 +02:00 committed by Michael Keller
parent 6320dff462
commit 494e42610e
3 changed files with 1911 additions and 0 deletions

View File

@ -178,6 +178,11 @@ MCU_EXCLUDES = \
drivers/bus_i2c.c \
drivers/timer.c \
drivers/serial_uart.c
ifneq ($(filter SDIO,$(FEATURES)),)
MCU_COMMON_SRC += \
drivers/sdio_f7xx.c
endif
DSP_LIB := $(ROOT)/lib/main/CMSIS/DSP
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM7

1898
src/main/drivers/sdio_f7xx.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,15 @@
#define __fatfs_sd_sdio_H__
#include <stdint.h>
#include "platform.h"
#ifdef STM32F4
#include "stm32f4xx.h"
#endif
#ifdef STM32F7
#include "stm32f7xx.h"
#endif
/* SDCARD pinouts
*