aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mmc_spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/mmc_spi.h')
-rw-r--r--os/io/mmc_spi.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/os/io/mmc_spi.h b/os/io/mmc_spi.h
index 717f80b84..c4427f7c2 100644
--- a/os/io/mmc_spi.h
+++ b/os/io/mmc_spi.h
@@ -34,8 +34,8 @@
/**
* @brief Block size for MMC transfers.
*/
-#if !defined(MMC_BLOCK_SIZE) || defined(__DOXYGEN__)
-#define MMC_BLOCK_SIZE 512
+#if !defined(MMC_SECTOR_SIZE) || defined(__DOXYGEN__)
+#define MMC_SECTOR_SIZE 512
#endif
/**
@@ -168,6 +168,16 @@ typedef struct {
/* External declarations. */
/*===========================================================================*/
+/**
+ * @brief Returns the driver state.
+ */
+#define mmcGetDriverState(mmcp) ((mmcp)->mmc_state)
+
+/**
+ * @brief Returns the write protect status.
+ */
+#define mmcIsWriteProtected(mmcp) ((mmcp)->mmc_is_protected())
+
#ifdef __cplusplus
extern "C" {
#endif