X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2Ffwbc.c;h=187481916da4c8c127c5730dd7a883f08b319b18;hp=a617d247a09c6bb626f208aade90ba3fa23a3059;hb=945d83a31473b984473f571bb92486991d14aa16;hpb=63b32f389164de54b110cb6441e1569aee466a82 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; }