summaryrefslogtreecommitdiff
path: root/ecosflash
diff options
context:
space:
mode:
Diffstat (limited to 'ecosflash')
-rw-r--r--ecosflash/flash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ecosflash/flash.c b/ecosflash/flash.c
index 81f7d07d..c8ac353f 100644
--- a/ecosflash/flash.c
+++ b/ecosflash/flash.c
@@ -53,7 +53,7 @@ int init()
*t=0;
}
return flash_init((_printf *)&myprintf);
-
+
}
@@ -68,15 +68,15 @@ int checkFlash(void *addr, int len)
}
-int erase(void *address, int len)
+int erase(void *address, int len)
{
int retval;
void *failAddress;
-
+
retval=checkFlash(address, len);
if (retval!=0)
return retval;
-
+
retval=init();
if (retval!=0)
return retval;
@@ -88,14 +88,14 @@ int erase(void *address, int len)
extern char _end;
// Data follows immediately after program, long word aligned.
-int program(void *buffer, void *address, int len)
+int program(void *buffer, void *address, int len)
{
int retval;
void *failAddress;
retval=checkFlash(address, len);
if (retval!=0)
return retval;
-
+
retval=init();
if (retval!=0)
return retval;