diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-05 09:51:44 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-05 09:51:44 +0000 |
commit | e7e7435ed86aa2dbd86817c9441d6f9101a0a71b (patch) | |
tree | ec860af08bbaefdf7e08e4c9024927a9f40ad2a3 /os/hal/lib | |
parent | 4c093804c0f3daf91ec26532618d55da7c3e3e74 (diff) | |
download | ChibiOS-e7e7435ed86aa2dbd86817c9441d6f9101a0a71b.tar.gz ChibiOS-e7e7435ed86aa2dbd86817c9441d6f9101a0a71b.tar.bz2 ChibiOS-e7e7435ed86aa2dbd86817c9441d6f9101a0a71b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9420 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib')
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index 17ada6e6e..ceddbc00a 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -33,7 +33,7 @@ * @name Flash attributes
* @{
*/
-#define FLASH_ATTR_ERASED_ONE 0x00000001
+#define FLASH_ATTR_ERASED_IS_ONE 0x00000001
#define FLASH_ATTR_MEMORY_MAPPED 0x00000002
#define FLASH_ATTR_REWRITABLE 0x00000004
/** @} */
@@ -97,6 +97,16 @@ typedef struct { } BaseFlash;
/**
+ * @brief Type of a flash error code.
+ */
+typedef enum {
+ FLASH_NO_ERROR = 0,
+ FLASH_PARAMETER_ERROR = 1,
+ FLASH_VERIFY_FAILURE = 2,
+ FLASH_HW_FAILURE = 3
+} flash_error_t;
+
+/**
* @brief Flash sector descriptor.
*/
typedef struct {
|