From cf17f9d1733d1128f74e6162811c1f6bc12b633c Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 7 Feb 2011 11:43:50 +0000 Subject: [PATCH] flash: fix example usage documentation git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4684 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/flash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1