     for (long i = 0; i < SPEED * 100000; ++i)
         if (Target.available())
             return Target.read();
+    toggleLed();
     return 0;
 }
 

    
    Log.print("     Writing: ");
    for (uint16_t offset = 0; offset < sizeof data; offset += 256) {
        Log.print('+');
        sendCmd(WRITE_CMD);
        uint32_t addr = 0x08000000 + offset;


static void targetInit () { Target.begin(9600, SERIAL_8E1); }

#define SPEED       10      // busy loops run a lot faster than on ATmega328

#endif // __AVR_ATmega328P__

