projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
support for binaries usinf -b, BUT: dirty dirty slow slow fucked up code! i mean it!
[my-code/arm.git]
/
betty
/
fwflash.c
diff --git
a/betty/fwflash.c
b/betty/fwflash.c
index
7c9551f
..
fd8d31b
100644
(file)
--- a/
betty/fwflash.c
+++ b/
betty/fwflash.c
@@
-313,6
+313,9
@@
int flash_write(u32 addr,u16 data) {
u16 check;
+ if(data==0xffff)
+ return 0;
+
*((unsigned volatile short *)addr)=0xa0;
*((unsigned volatile short *)addr)=data;
while(1) {