diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-16 18:19:34 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-16 18:19:34 +0000 |
commit | 973d8da5eabeead58445937e5be4c740ffaf2c56 (patch) | |
tree | e9c863024f826aa2f0da691dcde604f472678e94 /os/hal/src/sdc.c | |
parent | 04da61495794ed3e22381cdead5a8f1919b512a2 (diff) | |
download | ChibiOS-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/src/sdc.c')
-rw-r--r-- | os/hal/src/sdc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index 6cb6dbe06..10baa38e8 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -465,6 +465,21 @@ bool_t sdcWrite(SDCDriver *sdcp, uint32_t startblk, return status;
}
+/**
+ * @brief Returns the errors mask associated to the previous operation.
+ *
+ * @param[in] sdcp pointer to the @p SDCDriver object
+ * @return The errors mask.
+ *
+ * @api
+ */
+sdcflags_t sdcGetAndClearErrors(SDCDriver *sdcp) {
+
+ chDbgCheck(sdcp != NULL, "sdcGetAndClearErrors");
+
+ return sdc_lld_get_and_clear_errors(sdcp);
+}
+
#endif /* HAL_USE_SDC */
/** @} */
|