From 2c33cd5ebc6f6dbfa5ae6d64a070fd2b3d1b799a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 7 May 2016 21:02:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9448 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/peripherals/flash/hal_flash.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'os/hal/lib/peripherals/flash') 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 @@ -51,6 +51,16 @@ /* Driver data structures and types. */ /*===========================================================================*/ +/** + * @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. */ @@ -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. -- cgit v1.2.3