From 2d4aff80dcd0db460c00d0efa398a06e9bf522eb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 4 Jun 2011 13:30:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3025 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/sdc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'os/hal/include') 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 @@ -173,6 +173,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 -- cgit v1.2.3