From: arighi Date: Mon, 7 Feb 2011 11:43:50 +0000 (+0000) Subject: flash: fix example usage documentation X-Git-Tag: 2.7.0~282 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cf17f9d1733d1128f74e6162811c1f6bc12b633c;p=bertos.git flash: fix example usage documentation git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4684 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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