Update preset.
[bertos.git] / bertos / drv / flash.h
index 543b3242d440df8da4986c551479cc433d601947..d9cf8070448fe38572a2b4edf4dad4b105ad3e37 100644 (file)
 * 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
-* kblock_trim(&fls, 50, 20);
+* kblock_trim(&fls.blk, 50, 20);
 * // ...
 * // now write to the flash
 * // block number is automatically converted