From 7e815ba913fb19597eddd708aaef789e3674093d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 10 May 2012 17:16:30 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4183 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/sdc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'os/hal/src') 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 */ -- cgit v1.2.3