Add special support to the AVRISP-MKII for the new model USBTINY-MKII's additional LED to indicate target power source.
Add support to the USBTINY-MKII's additional LED in the board's LED driver header. Changed LED indicator masks for the AVRISP-MKII project, so that there are defined roles for each LED.
This commit is contained in:
1 parent
30c2b620de
commit
62022252ea
4 files changed
+20
-7
No files matched your search
@@ -49,6 +49,12 @@ int main(void)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
#if (BOARD == BOARD_USBTINYMKII)
|
||||
/* On the USBTINY-MKII target, there is a secondary LED which indicates the current selected power
|
||||
mode - either VBUS, or sourced from the VTARGET pin of the programming connectors */
|
||||
LEDs_ChangeLEDs(LEDMASK_VBUSPOWER, (PIND & (1 << 0)) ? LEDMASK_VBUSPOWER : 0);
|
||||
#endif
|
||||
|
||||
AVRISP_Task();
|
||||
USB_USBTask();
|
||||
}
|
||||
@@ -66,7 +72,7 @@ void SetupHardware(void)
|
||||
|
||||
/* Hardware Initialization */
|
||||
LEDs_Init();
|
||||
USB_Init();
|
||||
USB_Init();
|
||||
}
|
||||
|
||||
/** Event handler for the library USB Connection event. */
|
||||
|
||||
Reference in new issue
Block a user