X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash.h;h=9ea5665075e815793a0e9daf8ccaa2a2d903e8a0;hb=010a2d0611571ec1e4bace00b4b6efe8462f512f;hp=da1fa80143251cdcaf320d7a7457c69e23f4b36e;hpb=540b160dbedfdb12ce29f9b107be860ba22cd6cb;p=bertos.git diff --git a/bertos/drv/flash.h b/bertos/drv/flash.h index da1fa801..9ea56650 100644 --- a/bertos/drv/flash.h +++ b/bertos/drv/flash.h @@ -106,9 +106,9 @@ void flash_hw_initUnbuffered(Flash *fls, int flags); #include CPU_HEADER(flash) #define FLASH_WRITE_ONCE BV(0) ///< Allow only one write per block. -#define FLASH_BUFFERED BV(1) ///< Open flash memory using page caching, allowing the modification and partial write. +#define FLASH_UNBUFFERED BV(1) ///< Open flash memory disabling page caching, no modification and partial write are allowed. -#define flash_init_2(fls, flags) (flags & FLASH_BUFFERED) ? \ +#define flash_init_2(fls, flags) (flags & FLASH_UNBUFFERED) ? \ flash_hw_initUnbuffered(fls, flags) : flash_hw_init(fls, flags) #if !CONFIG_FLASH_DISABLE_OLD_API