X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=bertos%2Fdrv%2Fflash.h;h=9552a2e6a7b76172b780610176db5dad7509014f;hb=7052462ee4127b539fb1d7816720767ac9904a9a;hp=9119b44dfe37356550bade5576ab4e4ec5548b88;hpb=dab05c3c11467a2e62129df25983465285177df8;p=bertos.git diff --git a/bertos/drv/flash.h b/bertos/drv/flash.h index 9119b44d..9552a2e6 100644 --- a/bertos/drv/flash.h +++ b/bertos/drv/flash.h @@ -36,7 +36,7 @@ * \author Daniele Basile * * $WIZ$ module_name = "flash" -* $WIZ$ module_depends = "kfile" +* $WIZ$ module_depends = "kfile", "kfile_block", "kblock" */ #ifndef DRV_FLASH_H @@ -45,6 +45,7 @@ #include "cfg/cfg_emb_flash.h" #include +#include #include #include @@ -56,7 +57,8 @@ #define FLASH_WR_OK 0 ///< Write ok. #define FLASH_NOT_ERASED BV(1) ///< Flash memory was not erased before to write it. #define FLASH_WR_PROTECT BV(2) ///< Write not allowed the flash memory was protected. -#define FLASH_WR_TIMEOUT BV(3) ///< +#define FLASH_WR_TIMEOUT BV(3) ///< Timeout while writing +#define FLASH_WR_ERR BV(4) ///< Invalid command and/or a bad keywords struct FlashHardware; @@ -108,6 +110,7 @@ INLINE void flash_initUnbuffered(Flash *fls) flash_hw_initUnbuffered(fls); } +#include CPU_HEADER(flash) #endif /* DRV_FLASH_H */