From f16a0581cec5a807fa09b3ac15fbe75c447536a6 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 9 Nov 2017 13:37:47 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10978 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/peripherals/flash/hal_flash.c | 1 + os/hal/lib/peripherals/flash/hal_flash.h | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'os/hal') diff --git a/os/hal/lib/peripherals/flash/hal_flash.c b/os/hal/lib/peripherals/flash/hal_flash.c index 7bc0845bb..4ae5211d4 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.c +++ b/os/hal/lib/peripherals/flash/hal_flash.c @@ -54,6 +54,7 @@ * @return An error code. * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_ERROR_ERASE if the erase operation failed. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. */ flash_error_t flashWaitErase(BaseFlash *devp) { diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index f6e83d580..bfd1974c5 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -218,6 +218,7 @@ typedef struct { * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. * @retval FLASH_ERROR_READ if the read operation failed. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ @@ -235,6 +236,7 @@ typedef struct { * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. * @retval FLASH_ERROR_PROGRAM if the program operation failed. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ @@ -248,6 +250,7 @@ typedef struct { * @return An error code. * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ @@ -262,6 +265,7 @@ typedef struct { * @return An error code. * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ @@ -278,6 +282,7 @@ typedef struct { * @retval FLASH_NO_ERROR if there is no erase operation in progress. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. * @retval FLASH_ERROR_ERASE if the erase operation failed. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ @@ -290,9 +295,10 @@ typedef struct { * @param[in] ip pointer to a @p BaseFlash or derived class * @param[in] sector sector to be verified * @return An error code. - * @retval FLASH_NO_ERROR if there is no erase operation in progress. + * @retval FLASH_NO_ERROR if the sector is erased. * @retval FLASH_BUSY_ERASING if there is an erase operation in progress. * @retval FLASH_ERROR_VERIFY if the verify operation failed. + * @retval FLASH_ERROR_HW_FAILURE if access to the memory failed. * * @api */ -- cgit v1.2.3