X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash25.h;h=e3fd3e9dfc6c049f9d22d254a3bad9d4e8f3f857;hb=effc744524c7ea52dfd6e803d467c461bb3ad77a;hp=86dee8600f8cd22bb75d30b403409a8099d72c19;hpb=8cca97771bf57082616dde340005874812fb728a;p=bertos.git diff --git a/bertos/drv/flash25.h b/bertos/drv/flash25.h index 86dee860..e3fd3e9d 100644 --- a/bertos/drv/flash25.h +++ b/bertos/drv/flash25.h @@ -35,14 +35,20 @@ * * \version $Id$ * \author Daniele Basile + * + * $wizard_module = { + * "name" : "flash25", + * "depends" : ["kfile"], + * "configuration" : "bertos/cfg/cfg_flash25.h" + * } */ #ifndef DRV_FLASH25_H #define DRV_FLASH25_H -#include #include "cfg/cfg_flash25.h" +#include #include @@ -71,7 +77,7 @@ typedef struct Flash25 /** * Convert + ASSERT from generic KFile to Flash25. */ -INLINE Flash25 * FLASH25KFILE(KFile *fd) +INLINE Flash25 * FLASH25_CAST(KFile *fd) { ASSERT(fd->_type == KFT_FLASH25); return (Flash25 *)fd; @@ -83,7 +89,10 @@ INLINE Flash25 * FLASH25KFILE(KFile *fd) * \note Below are defined valid serial flash memory support to * this drive. Every time we call flash25_init() function we check * if memory defined are right (see flash25.c form more detail). - * \{ + * + * $WIZARD_LIST = { + * "flash25_list" : ["FLASH25_AT25F2048"] + * } */ #define FLASH25_AT25F2048 1 @@ -100,7 +109,6 @@ INLINE Flash25 * FLASH25KFILE(KFile *fd) #endif #define RDY_BIT 0x1 // Statuts of write cycle -/* \} */ /** * Serial flash opcode commands.