diff options
Diffstat (limited to 'os/hal/include/sdc.h')
-rw-r--r-- | os/hal/include/sdc.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/os/hal/include/sdc.h b/os/hal/include/sdc.h index aa02e4f5b..0e44361ff 100644 --- a/os/hal/include/sdc.h +++ b/os/hal/include/sdc.h @@ -113,7 +113,7 @@ */
/**
* @brief Number of initialization attempts before rejecting the card.
- * @note Attempts are performed at 10mS intevals.
+ * @note Attempts are performed at 10mS intervals.
*/
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
#define SDC_INIT_RETRY 100
@@ -254,6 +254,16 @@ typedef enum { #define sdcIsWriteProtected(sdcp) (sdc_lld_is_write_protected(sdcp))
/**
+ * @brief Returns the card capacity in blocks.
+ *
+ * @param[in] sdcp pointer to the @p SDCDriver object
+ * @return The card capacity.
+ *
+ * @api
+ */
+#define sdcGetCardCapacity(sdcp) ((sdcp)->capacity)
+
+/**
* @brief Slice position of values in CSD register.
*/
/* CSD version 2.0 */
|