#include "mb91465k.h"
#include "flash.h"
-#define BUFSIZE 0x10
+#define BUFSIZE 0x20
#define cleardata() memset(data,0,BUFSIZE)
static void increaseled(void)
while(running) {
cleardata();
increaseled();
-
switch(recvbyte()) {
case 0x15: //chip erase
Putch4(0x45);
panic();
}
}
+ Putch4(0x28); //Flashing done.
break;
- case 0x23: //ack it
- Putch4(0xaa);
- break;
-
- case 0x97: /* exit and restart (let do this by the watchdog)! */
+ case 0x97: /* exit and restart (let do this by the watchdog!) */
while(1) {
increaseled();
}