projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add server tcp api.
[bertos.git]
/
bertos
/
drv
/
flash.h
diff --git
a/bertos/drv/flash.h
b/bertos/drv/flash.h
index f00926ae59ff0560b353c2045033145cb12d9f0b..d9cf8070448fe38572a2b4edf4dad4b105ad3e37 100644
(file)
--- a/
bertos/drv/flash.h
+++ b/
bertos/drv/flash.h
@@
-29,8
+29,10
@@
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
+* \defgroup drv_emb_flash Embedded flash driver
+* \ingroup drivers
+* \{
*
*
-* \addtogroup drv_emb_flash
* \brief Embedded flash for cpu.
*
* This module allows to access in reading and writing to the internal
* \brief Embedded flash for cpu.
*
* This module allows to access in reading and writing to the internal
@@
-43,10
+45,10
@@
* Example usage:
* \code
* Flash fls;
* Example usage:
* \code
* Flash fls;
-* flash_init(&fls
.blk
, 0);
+* flash_init(&fls, 0);
* // enable access only on desired blocks
* // start block = 50, num blocks = 20
* // enable access only on desired blocks
* // start block = 50, num blocks = 20
-* kblock_trim(&fls, 50, 20);
+* kblock_trim(&fls
.blk
, 50, 20);
* // ...
* // now write to the flash
* // block number is automatically converted
* // ...
* // now write to the flash
* // block number is automatically converted
@@
-75,11
+77,6
@@
#include <cpu/attr.h>
#include <cpu/attr.h>
-/**
- * \defgroup drv_emb_flash Embedded flash driver
- * \ingroup drivers
- * \{
- */
#if COMPILER_C99
#define flash_init(...) PP_CAT(flash_init_, COUNT_PARMS(__VA_ARGS__)) (__VA_ARGS__)
#else
#if COMPILER_C99
#define flash_init(...) PP_CAT(flash_init_, COUNT_PARMS(__VA_ARGS__)) (__VA_ARGS__)
#else