aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-04 13:30:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-04 13:30:13 +0000
commit2d4aff80dcd0db460c00d0efa398a06e9bf522eb (patch)
treeb0dfd72d2dd30e294c62f9dac82dde9ba6a4f93a /os/hal/include
parentac3795ec527571f697892d6b0622de7cdd9f6964 (diff)
downloadChibiOS-2d4aff80dcd0db460c00d0efa398a06e9bf522eb.tar.gz
ChibiOS-2d4aff80dcd0db460c00d0efa398a06e9bf522eb.tar.bz2
ChibiOS-2d4aff80dcd0db460c00d0efa398a06e9bf522eb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3025 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/sdc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/os/hal/include/sdc.h b/os/hal/include/sdc.h
index 3f0634fc5..afc3a6aba 100644
--- a/os/hal/include/sdc.h
+++ b/os/hal/include/sdc.h
@@ -174,6 +174,22 @@ typedef enum {
#define sdcGetDriverState(sdcp) ((sdcp)->state)
/**
+ * @brief Returns the card insertion status.
+ * @note This macro wraps a low level function named
+ * @p sdc_lld_is_card_inserted(), this function must be
+ * provided by the application because it is not part of the
+ * SDC driver.
+ *
+ * @param[in] sdcp pointer to the @p SDCDriver object
+ * @return The card state.
+ * @retval FALSE card not inserted.
+ * @retval TRUE card inserted.
+ *
+ * @api
+ */
+#define sdcIsCardInserted(sdcp) (sdc_lld_is_card_inserted(sdcp))
+
+/**
* @brief Returns the write protect status.
* @note This macro wraps a low level function named
* @p sdc_lld_is_write_protected(), this function must be