diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-07 21:02:54 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-07 21:02:54 +0000 |
commit | 2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a (patch) | |
tree | eaba11a8ad04779a60c210678b43dff6e8d941c6 /os/hal/lib/peripherals/flash | |
parent | 77ea39c0dfe2fb48118b5a876e914e4bc93d9ea4 (diff) | |
download | ChibiOS-2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a.tar.gz ChibiOS-2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a.tar.bz2 ChibiOS-2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9448 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/flash')
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index 736fbb201..4c497e508 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -52,6 +52,16 @@ /*===========================================================================*/
/**
+ * @brief Driver state machine possible states.
+ */
+typedef enum {
+ FLASH_UNINIT = 0,
+ FLASH_STOP = 1,
+ FLASH_READY = 2,
+ FLASH_ACTIVE = 3
+} flash_state_t;
+
+/**
* @brief Type of a flash error code.
*/
typedef enum {
@@ -164,7 +174,10 @@ struct BaseFlashVMT { * @note It is empty because @p BaseFlash is only an interface
* without implementation.
*/
-#define _base_flash_data
+#define _base_flash_data \
+ /* Driver state.*/ \
+ flash_state_t state;
+
/**
* @brief Base flash class.
|