diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-09 13:37:47 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-09 13:37:47 +0000 |
commit | f16a0581cec5a807fa09b3ac15fbe75c447536a6 (patch) | |
tree | 93ae30401fac7bf47e8438190dce666c59f324c2 /os/hal/lib | |
parent | 8f814aba602e2e672b6a306e693cc6e3be178563 (diff) | |
download | ChibiOS-f16a0581cec5a807fa09b3ac15fbe75c447536a6.tar.gz ChibiOS-f16a0581cec5a807fa09b3ac15fbe75c447536a6.tar.bz2 ChibiOS-f16a0581cec5a807fa09b3ac15fbe75c447536a6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10978 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib')
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.c | 1 | ||||
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.h | 8 |
2 files changed, 8 insertions, 1 deletions
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
*/
|