Mercurial > flash_v2
diff packages/io/flash/current/doc/flash.sgml @ 1749:80232dbac7fb
Flash API clean-ups
| author | bartv |
|---|---|
| date | Mon, 22 Nov 2004 12:05:55 +0000 |
| parents | 172edf8a96d8 |
| children |
line wrap: on
line diff
--- a/packages/io/flash/current/doc/flash.sgml +++ b/packages/io/flash/current/doc/flash.sgml @@ -147,16 +147,16 @@ The following five functions return info __externC int cyg_flash_verify_addr(const flashaddr_t address); __extern size_t cyg_flash_block_size(const cyg_flashaddr_t flash_base); -typedef struct cyg_block_info +typedef struct cyg_flash_block_info size_t block_size; cyg_unit32 blocks; -} cyg_block_info_t; +} cyg_flash_block_info_t; typedef struct { - flashaddr_t start; // First address - flashaddr_t end; // Last address - cyg_uint32 num_block_infos // Number of entries - cyg_block_info_t *blocks_info; // Info about one block size + flashaddr_t start; // First address + flashaddr_t end; // Last address + cyg_uint32 num_block_infos // Number of entries + const cyg_flash_block_info_t *blocks_info; // Info about one block size } cyg_flash_info_t; </PROGRAMLISTING> @@ -329,7 +329,7 @@ between the FLASH IO library the FLASH d flashaddr_t *end; // Last address void *priv; // Devices private data cyg_uint32 num_block_infos; // Number of entries - cyg_block_info_t *blocks_info; // Info about one block size + cyg_flash_block_info_t *blocks_info; // Info about one block size // The following are only written to by the FLASH IO layer.
