X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Ffwbc.c;h=187481916da4c8c127c5730dd7a883f08b319b18;hb=6292cc9190f6e7f36a3634057740e770d58d7460;hp=a617d247a09c6bb626f208aade90ba3fa23a3059;hpb=63b32f389164de54b110cb6441e1569aee466a82;p=my-code%2Farm.git diff --git a/betty/fwbc.c b/betty/fwbc.c index a617d24..1874819 100644 --- a/betty/fwbc.c +++ b/betty/fwbc.c @@ -57,8 +57,8 @@ int main(void) { /* variables */ - u16 *mem; - u32 *bl; + u16 *mem=0; + u32 *bl=0; u32 i,len; u8 start; @@ -82,6 +82,8 @@ int main(void) { BCFG0=0x1000FBEF; // no boot[1:0] influence? (thnx colibri) // BCFG2 should be fine as is + while(1) { + /* wait for fwdump to send transmit start character */ start=0x23; while(1) { @@ -136,6 +138,8 @@ int main(void) { } } + } + return 0; }