diff options
Diffstat (limited to 'sst39sf020.c')
-rw-r--r-- | sst39sf020.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sst39sf020.c b/sst39sf020.c index 7e0853a0..80116aef 100644 --- a/sst39sf020.c +++ b/sst39sf020.c @@ -27,6 +27,7 @@ #include "flash.h" #include "jedec.h" +#include <stdio.h> #define AUTO_PG_ERASE1 0x20 #define AUTO_PG_ERASE2 0xD0 @@ -160,7 +161,7 @@ int erase_39sf020 (struct flashchip * flash) Temp = bios + 0x5555; /* set up address to be C000:5555h */ *Temp = 0x10; /* write data 0x55 to the address */ - myusec_delay(20000); + myusec_delay(50000); } int write_39sf020 (struct flashchip * flash, char * buf) @@ -181,6 +182,7 @@ int write_39sf020 (struct flashchip * flash, char * buf) write_sector_39sf020(bios, buf + i * page_size, bios + i * page_size, page_size); printf ("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"); + fflush(stdout); } printf("\n"); |