Add new more reliable software UART for the XPLAINBridge project by David Prentice...
[pub/lufa.git] / Projects / AVRISP / AVRISP.c
index 203fced..02292aa 100644 (file)
@@ -70,6 +70,7 @@ void SetupHardware(void)
        /* Hardware Initialization */\r
        LEDs_Init();\r
        USB_Init();\r
+       SerialStream_Init(9600, true);\r
 \r
        #if defined(ADC)\r
        /* Initialize the ADC converter for VTARGET level detection on supported AVR models */\r
@@ -123,8 +124,12 @@ void Process_AVRISP_Commands(void)
        /* Check to see if a V2 Protocol command has been received */\r
        if (Endpoint_IsOUTReceived())\r
        {\r
+               LEDs_SetAllLEDs(LEDMASK_BUSY);\r
+\r
                /* Pass off processing of the V2 Protocol command to the V2 Protocol handler */\r
                V2Protocol_ProcessCommand();\r
+\r
+               LEDs_SetAllLEDs(LEDMASK_USB_READY);\r
        }\r
 }\r
 \r