X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash25.h;h=5c31ba6e0e820bdbf3c87323da57ac0fc47f10b9;hb=3b1451f6e3161b0f1b16e9be49dd46649b03a9d9;hp=27c6411fca2872d194bc89d67aabd4b4f8a91581;hpb=083409cb680e0f8ac6b431af87008fe8be66f011;p=bertos.git diff --git a/bertos/drv/flash25.h b/bertos/drv/flash25.h index 27c6411f..5c31ba6e 100644 --- a/bertos/drv/flash25.h +++ b/bertos/drv/flash25.h @@ -35,14 +35,18 @@ * * \version $Id$ * \author Daniele Basile + * + * $WIZ$ module_name = "flash25" + * $WIZ$ module_depends = "kfile" + * $WIZ$ module_configuration = "bertos/cfg/cfg_flash25.h" */ #ifndef DRV_FLASH25_H #define DRV_FLASH25_H -#include #include "cfg/cfg_flash25.h" +#include #include @@ -83,7 +87,8 @@ INLINE Flash25 * FLASH25_CAST(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). - * \{ + * + * $WIZ$ flash25_list = "FLASH25_AT25F2048" */ #define FLASH25_AT25F2048 1 @@ -95,12 +100,11 @@ INLINE Flash25 * FLASH25_CAST(KFile *fd) #define FLASH25_SECTOR_SIZE 65536UL // Section size in byte #define FLASH25_MEM_SIZE FLASH25_NUM_SECTOR * FLASH25_SECTOR_SIZE #define FLASH25_NUM_PAGE FLASH25_MEM_SIZE / FLASH25_PAGE_SIZE -#elif +#else #error Nothing memory defined in CONFIG_FLASH25 are support. #endif #define RDY_BIT 0x1 // Statuts of write cycle -/* \} */ /** * Serial flash opcode commands.