projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge some fix from trunk.
[bertos.git]
/
bertos
/
drv
/
flash.h
diff --git
a/bertos/drv/flash.h
b/bertos/drv/flash.h
index da1fa80143251cdcaf320d7a7457c69e23f4b36e..9ea5665075e815793a0e9daf8ccaa2a2d903e8a0 100644
(file)
--- 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.
#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_
UN
BUFFERED) ? \
flash_hw_initUnbuffered(fls, flags) : flash_hw_init(fls, flags)
#if !CONFIG_FLASH_DISABLE_OLD_API
flash_hw_initUnbuffered(fls, flags) : flash_hw_init(fls, flags)
#if !CONFIG_FLASH_DISABLE_OLD_API