Add activity LED updates to the AVRISP project.

This commit is contained in:
Dean Camera 2009-11-23 05:28:08 +00:00
parent bcf07edeb2
commit 86db035b1e
4 changed files with 15 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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);