From ae73e4efcd78f9596d1565dbb4eb1eb0bba61bec Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Sun, 19 Oct 2008 23:27:27 +0200 Subject: flash: debugged the flash driver. * Read array works. * Write array works. --- digital/avr/modules/flash/flash.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'digital/avr/modules/flash/flash.h') diff --git a/digital/avr/modules/flash/flash.h b/digital/avr/modules/flash/flash.h index b44b055b..4d06fd47 100644 --- a/digital/avr/modules/flash/flash.h +++ b/digital/avr/modules/flash/flash.h @@ -51,7 +51,7 @@ #define FLASH_TBP_US 10 -enum flash_statu_t +enum flash_status_t { FLASH_DISABLE, FLASH_ENABLE, @@ -60,10 +60,10 @@ enum flash_statu_t struct flash_t { - /** Current Address in the flash memory. */ - uint32_t addr; - /** Indicate the status of the flash memory. */ - uint8_t flash_status; + /* The next address to write the data. */ + uint32_t write_addr; + /* Status. */ + enum flash_status_t status; }; typedef struct flash_t flash_t; -- cgit v1.2.3