We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21dc0c commit cacdc64Copy full SHA for cacdc64
include/hw/sdmmc.h
@@ -21,6 +21,20 @@ enum cardtype_e {
21
CARD_TYPE_SD, /**< Card is SD or MMC type */
22
};
23
24
+enum data_mode_e {
25
+ DATA_MODE_4BIT, /**< 4-bit data mode */
26
+ DATA_MODE_1BIT, /**< 1-bit data mode */
27
+};
28
+
29
+/**
30
+ * @brief SDMMC Configuration
31
+ *
32
+ */
33
+struct sdmmc_cfg_t {
34
+ uint8_t card_type; /**< Card type @ref cardtype_e */
35
+ uint8_t data_mode; /**< Data mode @ref data_mode_e */
36
37
38
/**
39
* @brief Mount an SD card
40
*
@@ -35,7 +49,7 @@ enum cardtype_e {
49
* @param type card type @ref cardtype_e
50
* @return 0 on success, negative on error
51
*/
-int sdmmc_mount(uint8_t type);
52
+int sdmmc_mount(struct sdmmc_cfg_t *cfg);
53
54
41
55
* @brief Unmount SD card
0 commit comments