aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-04-16 18:19:34 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-04-16 18:19:34 +0000
commit973d8da5eabeead58445937e5be4c740ffaf2c56 (patch)
treee9c863024f826aa2f0da691dcde604f472678e94 /os/hal/platforms/STM32/sdc_lld.h
parent04da61495794ed3e22381cdead5a8f1919b512a2 (diff)
downloadChibiOS-973d8da5eabeead58445937e5be4c740ffaf2c56.tar.gz
ChibiOS-973d8da5eabeead58445937e5be4c740ffaf2c56.tar.bz2
ChibiOS-973d8da5eabeead58445937e5be4c740ffaf2c56.zip
SDC. Added function sdcGetAndClearErrors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/sdc_dev2@4099 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.h')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h
index 51db5b2aa..000100396 100644
--- a/os/hal/platforms/STM32/sdc_lld.h
+++ b/os/hal/platforms/STM32/sdc_lld.h
@@ -119,7 +119,6 @@
#endif
-
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
@@ -139,6 +138,11 @@ typedef enum {
typedef uint32_t sdcmode_t;
/**
+ * @brief SDC Driver condition flags type.
+ */
+typedef uint32_t sdcflags_t;
+
+/**
* @brief Type of a structure representing an SDC driver.
*/
typedef struct SDCDriver SDCDriver;
@@ -170,7 +174,7 @@ struct SDCDriver {
/**
* @brief Errors flags.
*/
- uint32_t errors;
+ sdcflags_t errors;
/**
* @brief Card CID.
*/
@@ -242,6 +246,7 @@ extern "C" {
uint8_t *buf, uint32_t n);
bool_t sdc_lld_write(SDCDriver *sdcp, uint32_t startblk,
const uint8_t *buf, uint32_t n);
+ sdcflags_t sdc_lld_get_and_clear_errors(SDCDriver *sdcp);
bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp);
bool_t sdc_lld_is_write_protected(SDCDriver *sdcp);
#ifdef __cplusplus