diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-10 17:16:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-10 17:16:30 +0000 |
commit | 7e815ba913fb19597eddd708aaef789e3674093d (patch) | |
tree | e8885b2e052e961be06ab7cbf31575b6d5318327 /os/hal/src | |
parent | eba4b7056128ae85402984fb03882a5a9eb88213 (diff) | |
download | ChibiOS-7e815ba913fb19597eddd708aaef789e3674093d.tar.gz ChibiOS-7e815ba913fb19597eddd708aaef789e3674093d.tar.bz2 ChibiOS-7e815ba913fb19597eddd708aaef789e3674093d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4183 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/sdc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index 6ae84c98c..7722a0eb7 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -454,8 +454,8 @@ sdcflags_t sdcGetAndClearErrors(SDCDriver *sdcp) { * @param[in] sdcp pointer to the @p SDCDriver object
*
* @return The operation status.
- * @retval FALSE the operation succeeded.
- * @retval TRUE the operation failed.
+ * @retval CH_SUCCESS the operation succeeded.
+ * @retval CH_FAILED the operation failed.
*
* @api
*/
@@ -466,13 +466,13 @@ bool_t sdcSync(SDCDriver *sdcp) { chSysLock();
if (sdcp->state != SDC_READY) {
chSysUnlock();
- return TRUE;
+ return CH_FAILED;
}
chSysUnlock();
/* TODO: implement.*/
- return FALSE;
+ return CH_SUCCESS;
}
/**
@@ -482,8 +482,8 @@ bool_t sdcSync(SDCDriver *sdcp) { * @param[out] bdip pointer to a @p BlockDeviceInfo structure
*
* @return The operation status.
- * @retval FALSE the operation succeeded.
- * @retval TRUE the operation failed.
+ * @retval CH_SUCCESS the operation succeeded.
+ * @retval CH_FAILED the operation failed.
*
* @api
*/
@@ -495,14 +495,14 @@ bool_t sdcGetInfo(SDCDriver *sdcp, BlockDeviceInfo *bdip) { chSysLock();
if (sdcp->state != SDC_READY) {
chSysUnlock();
- return TRUE;
+ return CH_FAILED;
}
chSysUnlock();
bdip->blk_num = sdcp->capacity;
bdip->blk_size = MMCSD_BLOCK_SIZE;
- return FALSE;
+ return CH_SUCCESS;
}
#endif /* HAL_USE_SDC */
|