Microchip® Advanced Software Framework

conf_sd_mmc.h File Reference

SD/MMC stack configuration file.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define SD_MMC_SPI_MODE
 
board SPI SD/MMC slot template definition

The GPIO and SPI Connections of the SD/MMC Connector must be added in board.h file. Also do not forget to add the initialization of this GPIO in the init.c from the board. See below an example:

#define SD_MMC_SPI_MEM_CNT   1
 
#define SD_MMC_SPI_0_CS   1
 
#define SD_MMC_SPI   SPI0
 

#define SD_MMC_SPI_0_CS   1
#define SD_MMC_SPI_MEM_CNT   1
#define SD_MMC_SPI_MODE