X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash.h;h=d9cf8070448fe38572a2b4edf4dad4b105ad3e37;hb=e8b0472be10fba4ca6baa62d8d483db90e28c06e;hp=543b3242d440df8da4986c551479cc433d601947;hpb=cd7538b224bbe4fb287b96903678df6ae435522c;p=bertos.git diff --git a/bertos/drv/flash.h b/bertos/drv/flash.h index 543b3242..d9cf8070 100644 --- a/bertos/drv/flash.h +++ b/bertos/drv/flash.h @@ -45,10 +45,10 @@ * 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