forked from mfulz_github/qmk_firmware
		
	USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run.
This commit is contained in:
		
							parent
							
								
									85aaaf84ce
								
							
						
					
					
						commit
						59c4871f80
					
				| @ -69,6 +69,9 @@ int main(void) | |||||||
| 	/* Setup hardware required for the bootloader */ | 	/* Setup hardware required for the bootloader */ | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
|  | 	/* Enable global interrupts so that the USB stack can function */ | ||||||
|  | 	sei(); | ||||||
|  | 
 | ||||||
| 	while (RunBootloader) | 	while (RunBootloader) | ||||||
| 	{ | 	{ | ||||||
| 		CDC_Task(); | 		CDC_Task(); | ||||||
|  | |||||||
| @ -42,6 +42,7 @@ | |||||||
| 		#include <avr/boot.h> | 		#include <avr/boot.h> | ||||||
| 		#include <avr/eeprom.h> | 		#include <avr/eeprom.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -101,6 +101,9 @@ int main(void) | |||||||
| { | { | ||||||
| 	/* Configure hardware required by the bootloader */ | 	/* Configure hardware required by the bootloader */ | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
|  | 	 | ||||||
|  | 	/* Enable global interrupts so that the USB stack can function */ | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	/* Run the USB management task while the bootloader is supposed to be running */ | 	/* Run the USB management task while the bootloader is supposed to be running */ | ||||||
| 	while (RunBootloader || WaitForExit) | 	while (RunBootloader || WaitForExit) | ||||||
|  | |||||||
| @ -43,6 +43,7 @@ | |||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/eeprom.h> | 		#include <avr/eeprom.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 	 | 	 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -42,8 +42,6 @@ | |||||||
| int main(void) | int main(void) | ||||||
| { | { | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 |  | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); |  | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
| @ -63,48 +61,22 @@ void SetupHardware(void) | |||||||
| 	clock_prescale_set(clock_div_1); | 	clock_prescale_set(clock_div_1); | ||||||
| 	 | 	 | ||||||
| 	/* Hardware Initialization */ | 	/* Hardware Initialization */ | ||||||
| 	LEDs_Init(); |  | ||||||
| 	USB_Init(); | 	USB_Init(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** Event handler for the USB_Connect event. This indicates that the device is enumerating via the status LEDs. */ |  | ||||||
| void EVENT_USB_Device_Connect(void) |  | ||||||
| { |  | ||||||
| 	/* Indicate USB enumerating */ |  | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via
 |  | ||||||
|  *  the status LEDs, disables the sample update and PWM output timers and stops the USB and MIDI management tasks. |  | ||||||
|  */ |  | ||||||
| void EVENT_USB_Device_Disconnect(void) |  | ||||||
| { |  | ||||||
| 	/* Indicate USB not ready */ |  | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration
 | /** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration
 | ||||||
|  *  of the USB device after enumeration - the device endpoints are configured and the MIDI management task started. |  *  of the USB device after enumeration - the device endpoints are configured and the MIDI management task started. | ||||||
|  */ |  */ | ||||||
| void EVENT_USB_Device_ConfigurationChanged(void) | void EVENT_USB_Device_ConfigurationChanged(void) | ||||||
| { | { | ||||||
| 	/* Indicate USB connected and ready */ |  | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_READY); |  | ||||||
| 
 |  | ||||||
| 	/* Setup MIDI stream endpoints */ | 	/* Setup MIDI stream endpoints */ | ||||||
| 	if (!(Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPNUM, EP_TYPE_BULK, | 	Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPNUM, EP_TYPE_BULK, | ||||||
| 		                             ENDPOINT_DIR_OUT, MIDI_STREAM_EPSIZE, | 	                           ENDPOINT_DIR_OUT, MIDI_STREAM_EPSIZE, | ||||||
| 	                                 ENDPOINT_BANK_SINGLE))) | 	                           ENDPOINT_BANK_SINGLE); | ||||||
| 	{ |  | ||||||
| 		LEDs_SetAllLEDs(LEDMASK_USB_ERROR); |  | ||||||
| 	}	 |  | ||||||
| 	 | 	 | ||||||
| 	if (!(Endpoint_ConfigureEndpoint(MIDI_STREAM_IN_EPNUM, EP_TYPE_BULK, | 	Endpoint_ConfigureEndpoint(MIDI_STREAM_IN_EPNUM, EP_TYPE_BULK, | ||||||
| 		                             ENDPOINT_DIR_IN, MIDI_STREAM_EPSIZE, | 	                           ENDPOINT_DIR_IN, MIDI_STREAM_EPSIZE, | ||||||
| 	                                 ENDPOINT_BANK_SINGLE))) | 	                           ENDPOINT_BANK_SINGLE); | ||||||
| 	{ |  | ||||||
| 		LEDs_SetAllLEDs(LEDMASK_USB_ERROR); |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** Task to handle the generation of MIDI note change events in response to presses of the board joystick, and send them
 | /** Task to handle the generation of MIDI note change events in response to presses of the board joystick, and send them
 | ||||||
| @ -122,9 +94,7 @@ void MIDI_Task(void) | |||||||
| 	if (Endpoint_IsOUTReceived()) | 	if (Endpoint_IsOUTReceived()) | ||||||
| 	{ | 	{ | ||||||
| 		USB_MIDI_EventPacket_t InPacket; | 		USB_MIDI_EventPacket_t InPacket; | ||||||
| 		Endpoint_Read_Stream_LE(&InPacket, sizeof(InPacket)); | 		Endpoint_Read_Stream_LE(&InPacket, sizeof(InPacket));			 | ||||||
| 			 |  | ||||||
| 		LEDs_SetAllLEDs(InPacket.Data2 > 64 ? LEDS_LED1 : LEDS_LED2);	 |  | ||||||
| 		Endpoint_ClearOUT(); | 		Endpoint_ClearOUT(); | ||||||
| 
 | 
 | ||||||
| 		uint8_t Channel = InPacket.Data1; | 		uint8_t Channel = InPacket.Data1; | ||||||
|  | |||||||
| @ -41,12 +41,12 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/boot.h> | 		#include <avr/boot.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 				 | 				 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
| 		#include <LUFA/Drivers/Board/LEDs.h> |  | ||||||
| 		#include <LUFA/Drivers/USB/USB.h> | 		#include <LUFA/Drivers/USB/USB.h> | ||||||
| 
 | 
 | ||||||
|    /* Macros: */ |    /* Macros: */ | ||||||
|  | |||||||
| @ -49,6 +49,9 @@ int main(void) | |||||||
| 	/* Setup hardware required for the bootloader */ | 	/* Setup hardware required for the bootloader */ | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
|  | 	/* Enable global interrupts so that the USB stack can function */ | ||||||
|  | 	sei(); | ||||||
|  | 
 | ||||||
| 	while (RunBootloader) | 	while (RunBootloader) | ||||||
| 	  USB_USBTask(); | 	  USB_USBTask(); | ||||||
| 	 | 	 | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/boot.h> | 		#include <avr/boot.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -59,6 +59,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
| 		#include <LUFA/Drivers/Board/LEDs.h> | 		#include <LUFA/Drivers/Board/LEDs.h> | ||||||
|  | |||||||
| @ -59,6 +59,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdlib.h> | 		#include <stdlib.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -94,6 +94,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -74,6 +74,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		 | 		 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,8 +40,8 @@ | |||||||
| 	/* Includes: */ | 	/* Includes: */ | ||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/interrupt.h> |  | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -89,6 +89,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -36,6 +36,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -64,6 +64,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,7 +40,9 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
|  | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 				 | 				 | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,8 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
|  | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -89,6 +89,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -42,6 +42,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
| 		#include <avr/interrupt.h> | 		#include <avr/interrupt.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/interrupt.h> | 		#include <avr/interrupt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		 | 		 | ||||||
|  | |||||||
| @ -38,6 +38,8 @@ | |||||||
| 
 | 
 | ||||||
| 	/* Includes: */ | 	/* Includes: */ | ||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
|  | 		#include <avr/pgmspace.h> | ||||||
|  | 		#include <stdio.h> | ||||||
| 		 | 		 | ||||||
| 		#include <LUFA/Drivers/USB/Class/RNDIS.h> | 		#include <LUFA/Drivers/USB/Class/RNDIS.h> | ||||||
| 		#include <LUFA/Drivers/Peripheral/SerialStream.h> | 		#include <LUFA/Drivers/Peripheral/SerialStream.h> | ||||||
|  | |||||||
| @ -70,12 +70,11 @@ int main(void) | |||||||
| { | { | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); |  | ||||||
| 	 |  | ||||||
| 	TCP_Init(); | 	TCP_Init(); | ||||||
| 	Webserver_Init(); | 	Webserver_Init(); | ||||||
| 
 | 
 | ||||||
| 	printf_P(PSTR("\r\n\r\n****** RNDIS Demo running. ******\r\n")); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -39,10 +39,9 @@ | |||||||
| 	/* Includes: */ | 	/* Includes: */ | ||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> |  | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		#include <stdio.h> |  | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -76,6 +76,7 @@ int main(void) | |||||||
| 	CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream); | 	CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -90,6 +90,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -58,6 +58,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -35,6 +35,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 		#include "Lib/SideshowCommands.h" | 		#include "Lib/SideshowCommands.h" | ||||||
|  | |||||||
| @ -47,6 +47,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 				 | 				 | ||||||
|  | |||||||
| @ -47,6 +47,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,7 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
| 		#include <stdlib.h> | 		#include <avr/interrupt.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 		 | 		 | ||||||
|  | |||||||
| @ -69,6 +69,9 @@ CDC_Line_Coding_t LineEncoding2 = { .BaudRateBPS = 0, | |||||||
| int main(void) | int main(void) | ||||||
| { | { | ||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
|  | 	 | ||||||
|  | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -48,6 +48,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		 | 		 | ||||||
|  | |||||||
| @ -44,6 +44,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -62,6 +62,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -52,6 +52,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -36,6 +36,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -44,7 +44,8 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
| 
 | 	sei(); | ||||||
|  | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
| 		MIDI_Task(); | 		MIDI_Task(); | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -55,6 +55,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -61,6 +61,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdbool.h> | 		#include <stdbool.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		 | 		 | ||||||
|  | |||||||
| @ -38,6 +38,8 @@ | |||||||
| 
 | 
 | ||||||
| 	/* Includes: */ | 	/* Includes: */ | ||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
|  | 		#include <avr/pgmspace.h> | ||||||
|  | 		#include <stdio.h> | ||||||
| 		 | 		 | ||||||
| 		#include <LUFA/Drivers/Peripheral/SerialStream.h> | 		#include <LUFA/Drivers/Peripheral/SerialStream.h> | ||||||
| 		 | 		 | ||||||
|  | |||||||
| @ -47,9 +47,8 @@ int main(void) | |||||||
| 	TCP_Init(); | 	TCP_Init(); | ||||||
| 	Webserver_Init(); | 	Webserver_Init(); | ||||||
| 
 | 
 | ||||||
| 	printf_P(PSTR("\r\n\r\n****** RNDIS Demo running. ******\r\n")); |  | ||||||
| 
 |  | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 	 | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -39,10 +39,9 @@ | |||||||
| 	/* Includes: */ | 	/* Includes: */ | ||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> |  | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 		#include <stdio.h> |  | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -57,6 +57,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -40,6 +40,7 @@ | |||||||
| 		#include <avr/io.h> | 		#include <avr/io.h> | ||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Descriptors.h" | 		#include "Descriptors.h" | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host/Device Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host/Device Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -70,6 +70,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Joystick Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Joystick Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -65,7 +65,8 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
| 
 | 	sei(); | ||||||
|  | 	 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
| 		switch (USB_HostState) | 		switch (USB_HostState) | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -70,6 +70,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -63,6 +63,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -63,6 +63,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <ctype.h> | 		#include <ctype.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -65,6 +65,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -68,6 +68,7 @@ int main(void) | |||||||
| 	SetupHardware(); | 	SetupHardware(); | ||||||
| 
 | 
 | ||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -62,6 +62,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -70,6 +70,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -65,6 +65,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -65,6 +65,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -54,6 +54,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Bluetooth Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Bluetooth Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 	 | 	 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include "Lib/ServiceDiscoveryProtocol.h" | 		#include "Lib/ServiceDiscoveryProtocol.h" | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Generic HID Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Generic HID Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Joystick HID Parser Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Joystick HID Parser Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -36,6 +36,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 
 | 
 | ||||||
| 		#include <LUFA/Version.h> | 		#include <LUFA/Version.h> | ||||||
|  | |||||||
| @ -50,6 +50,7 @@ int main(void) | |||||||
| 	puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE)); | 	puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE)); | ||||||
| 
 | 
 | ||||||
| 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | 	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); | ||||||
|  | 	sei(); | ||||||
| 
 | 
 | ||||||
| 	for (;;) | 	for (;;) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ | |||||||
| 		#include <avr/wdt.h> | 		#include <avr/wdt.h> | ||||||
| 		#include <avr/pgmspace.h> | 		#include <avr/pgmspace.h> | ||||||
| 		#include <avr/power.h> | 		#include <avr/power.h> | ||||||
|  | 		#include <avr/interrupt.h> | ||||||
| 		#include <stdio.h> | 		#include <stdio.h> | ||||||
| 		#include <ctype.h> | 		#include <ctype.h> | ||||||
| 		#include <string.h> | 		#include <string.h> | ||||||
|  | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera