diff options
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/AVRISP/AVRISP.c | 4 | ||||
-rw-r--r-- | Projects/AVRISP/AVRISP.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Projects/AVRISP/AVRISP.c b/Projects/AVRISP/AVRISP.c index 203fced45..c0572fca2 100644 --- a/Projects/AVRISP/AVRISP.c +++ b/Projects/AVRISP/AVRISP.c @@ -123,8 +123,12 @@ void Process_AVRISP_Commands(void) /* Check to see if a V2 Protocol command has been received */
if (Endpoint_IsOUTReceived())
{
+ LEDs_SetAllLEDs(LEDMASK_BUSY);
+
/* Pass off processing of the V2 Protocol command to the V2 Protocol handler */
V2Protocol_ProcessCommand();
+
+ LEDs_SetAllLEDs(LEDMASK_USB_READY);
}
}
diff --git a/Projects/AVRISP/AVRISP.h b/Projects/AVRISP/AVRISP.h index e17fe3009..a0f4d5e79 100644 --- a/Projects/AVRISP/AVRISP.h +++ b/Projects/AVRISP/AVRISP.h @@ -67,6 +67,9 @@ /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
#define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
+ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */
+ #define LEDMASK_BUSY (LEDS_LED1 | LEDS_LED2)
+
/* Function Prototypes: */
void SetupHardware(void);
|