diff options
Diffstat (limited to 'os/hal/include/mmcsd.h')
-rw-r--r-- | os/hal/include/mmcsd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/hal/include/mmcsd.h b/os/hal/include/mmcsd.h index a05c2602f..8eaba8ed7 100644 --- a/os/hal/include/mmcsd.h +++ b/os/hal/include/mmcsd.h @@ -216,6 +216,22 @@ typedef struct { /* Driver macros. */
/*===========================================================================*/
+/**
+ * @name Macro Functions
+ * @{
+ */
+/**
+ * @brief Returns the card capacity in blocks.
+ *
+ * @param[in] ip pointer to a @p MMCSDBlockDevice or derived class
+ *
+ * @return The card capacity.
+ *
+ * @api
+ */
+#define mmcsdGetCardCapacity(ip) ((ip)->capacity)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|