aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/mmc_spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/mmc_spi.h')
-rw-r--r--os/hal/include/mmc_spi.h31
1 files changed, 14 insertions, 17 deletions
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h
index 760ab3ad1..a5812e399 100644
--- a/os/hal/include/mmc_spi.h
+++ b/os/hal/include/mmc_spi.h
@@ -102,11 +102,21 @@ typedef enum {
} mmcstate_t;
/**
- * @brief Driver configuration structure.
- * @note Not required in the current implementation.
+ * @brief MMC/SD over SPI driver configuration structure.
*/
typedef struct {
- uint8_t dummy;
+ /**
+ * @brief SPI driver associated to this MMC driver.
+ */
+ SPIDriver *spip;
+ /**
+ * @brief SPI low speed configuration used during initialization.
+ */
+ const SPIConfig *lscfg;
+ /**
+ * @brief SPI high speed configuration used during transfers.
+ */
+ const SPIConfig *hscfg;
} MMCConfig;
/**
@@ -128,18 +138,6 @@ typedef struct {
*/
const MMCConfig *config;
/**
- * @brief SPI driver associated to this MMC driver.
- */
- SPIDriver *spip;
- /**
- * @brief SPI low speed configuration used during initialization.
- */
- const SPIConfig *lscfg;
- /**
- * @brief SPI high speed configuration used during transfers.
- */
- const SPIConfig *hscfg;
- /**
* @brief Card insertion event source.
*/
EventSource inserted_event;
@@ -200,8 +198,7 @@ typedef struct {
extern "C" {
#endif
void mmcInit(void);
- void mmcObjectInit(MMCDriver *mmcp, SPIDriver *spip,
- const SPIConfig *lscfg, const SPIConfig *hscfg);
+ void mmcObjectInit(MMCDriver *mmcp);
void mmcStart(MMCDriver *mmcp, const MMCConfig *config);
void mmcStop(MMCDriver *mmcp);
bool_t mmcConnect(MMCDriver *mmcp);