aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-05-08 09:14:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-05-08 09:14:40 +0000
commitcc298608cc0d83dfbcce87c7c805f5107fecd7a6 (patch)
treefac3de0b08bd1b93b8bd8e022348eb33dff111ec /os/hal/lib
parent2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a (diff)
downloadChibiOS-cc298608cc0d83dfbcce87c7c805f5107fecd7a6.tar.gz
ChibiOS-cc298608cc0d83dfbcce87c7c805f5107fecd7a6.tar.bz2
ChibiOS-cc298608cc0d83dfbcce87c7c805f5107fecd7a6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9449 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib')
-rw-r--r--os/hal/lib/peripherals/flash/hal_flash.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h
index 4c497e508..c3559a732 100644
--- a/os/hal/lib/peripherals/flash/hal_flash.h
+++ b/os/hal/lib/peripherals/flash/hal_flash.h
@@ -69,8 +69,10 @@ typedef enum {
FLASH_PARAMETER_ERROR = 1, /* Error in a function parameter. */
FLASH_ADDRESS_ERROR = 2, /* Operation overlaps invalid addresses. */
FLASH_ECC_ERROR = 3, /* ECC error during read operation. */
- FLASH_VERIFY_FAILURE = 4, /* Write or erase operation failed. */
- FLASH_HW_FAILURE = 5 /* Controller or communication error. */
+ FLASH_PROGRAM_FAILURE = 4, /* Program operation failed. */
+ FLASH_ERASE_FAILURE = 5, /* Erase operation failed. */
+ FLASH_VERIFY_FAILURE = 6, /* Verify operation failed. */
+ FLASH_HW_FAILURE = 7 /* Controller or communication error. */
} flash_error_t;
/**