All USB class drivers are now automatically included when LUFA/Drivers/USB.h is included, and no longer need to be seperately included.
All LowLevel demos changed to use the constants and types defined in the USB class drivers.
This commit is contained in:
		
							parent
							
								
									8f3bee7d86
								
							
						
					
					
						commit
						b37d77eab3
					
				
					 208 changed files with 589 additions and 2910 deletions
				
			
		| 
						 | 
				
			
			@ -283,7 +283,7 @@ void WriteNextReport(uint8_t* const ReportOUTData,
 | 
			
		|||
		USB_ControlRequest = (USB_Request_Header_t)
 | 
			
		||||
			{
 | 
			
		||||
				.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
 | 
			
		||||
				.bRequest      = REQ_SetReport,
 | 
			
		||||
				.bRequest      = HID_REQ_SetReport,
 | 
			
		||||
				.wValue        = 0x02,
 | 
			
		||||
				.wIndex        = 0x01,
 | 
			
		||||
				.wLength       = ReportLength,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,23 +54,20 @@
 | 
			
		|||
		#include "ConfigDescriptor.h"
 | 
			
		||||
 | 
			
		||||
	/* Macros: */
 | 
			
		||||
		/** HID Class specific request to send a HID report to the device. */
 | 
			
		||||
		#define REQ_SetReport             0x09
 | 
			
		||||
 | 
			
		||||
		/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
 | 
			
		||||
		#define LEDMASK_USB_NOTREADY      LEDS_LED1
 | 
			
		||||
 | 
			
		||||
		/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
 | 
			
		||||
		#define LEDMASK_USB_ENUMERATING  (LEDS_LED2 | LEDS_LED3)
 | 
			
		||||
		#define LEDMASK_USB_ENUMERATING   (LEDS_LED2 | LEDS_LED3)
 | 
			
		||||
 | 
			
		||||
		/** LED mask for the library LED driver, to indicate that the USB interface is ready. */
 | 
			
		||||
		#define LEDMASK_USB_READY        (LEDS_LED2 | LEDS_LED4)
 | 
			
		||||
		#define LEDMASK_USB_READY         (LEDS_LED2 | LEDS_LED4)
 | 
			
		||||
 | 
			
		||||
		/** 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)
 | 
			
		||||
		#define LEDMASK_USB_ERROR         (LEDS_LED1 | LEDS_LED3)
 | 
			
		||||
 | 
			
		||||
		/** Size of the Launcher report command buffer. */
 | 
			
		||||
		#define LAUNCHER_CMD_BUFFER_SIZE 64
 | 
			
		||||
		#define LAUNCHER_CMD_BUFFER_SIZE  64
 | 
			
		||||
 | 
			
		||||
	/* Function Prototypes: */
 | 
			
		||||
		void SetupHardware(void);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue