Mercurial > nand-ecoscentric
changeset 1290:7fb73b26ec8a
Fix compile error
| author | gthomas |
|---|---|
| date | Wed, 08 Oct 2003 19:36:25 +0000 |
| parents | dbf0120b30ad |
| children | e0d220bbd109 |
| files | packages/io/flash/current/ChangeLog packages/io/flash/current/src/flash.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/flash/current/ChangeLog +++ b/packages/io/flash/current/ChangeLog @@ -1,3 +1,8 @@ +2003-10-08 Roland Cassebohm <roland.cassebohm@visionsystems.de> + + * src/flash.c: Fix parse error if CYGSEM_IO_FLASH_READ_INDIRECT + is not defined. + 2003-09-19 Gary Thomas <gary@mlbassoc.com> * src/flash.c:
--- a/packages/io/flash/current/src/flash.c +++ b/packages/io/flash/current/src/flash.c @@ -219,6 +219,7 @@ flash_erase(void *addr, int len, void ** FLASH_Enable(block, end_addr); while (block < end_addr) { // Supply the blocksize for a gross check for erase success + unsigned short *tmp_block; #if !defined(CYGSEM_IO_FLASH_READ_INDIRECT) int i; unsigned char *dp; @@ -234,7 +235,6 @@ flash_erase(void *addr, int len, void ** #else bool erased = false; #endif - unsigned short *tmp_block; if (!erased) { stat = (*_flash_erase_block)(block, flash_info.block_size);
