Reintegrate the FullEPAddresses development branch into trunk.
This commit is contained in:
		
							parent
							
								
									e8570c4a37
								
							
						
					
					
						commit
						47f6a35013
					
				
					 265 changed files with 2120 additions and 2486 deletions
				
			
		| 
						 | 
				
			
			@ -62,19 +62,25 @@ USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
 | 
			
		|||
	{
 | 
			
		||||
		.Config =
 | 
			
		||||
			{
 | 
			
		||||
				.ControlInterfaceNumber         = 0,
 | 
			
		||||
 | 
			
		||||
				.DataINEndpointNumber           = CDC_TX_EPNUM,
 | 
			
		||||
				.DataINEndpointSize             = CDC_TXRX_EPSIZE,
 | 
			
		||||
				.DataINEndpointDoubleBank       = false,
 | 
			
		||||
 | 
			
		||||
				.DataOUTEndpointNumber          = CDC_RX_EPNUM,
 | 
			
		||||
				.DataOUTEndpointSize            = CDC_TXRX_EPSIZE,
 | 
			
		||||
				.DataOUTEndpointDoubleBank      = false,
 | 
			
		||||
 | 
			
		||||
				.NotificationEndpointNumber     = CDC_NOTIFICATION_EPNUM,
 | 
			
		||||
				.NotificationEndpointSize       = CDC_NOTIFICATION_EPSIZE,
 | 
			
		||||
				.NotificationEndpointDoubleBank = false,
 | 
			
		||||
				.ControlInterfaceNumber   = 0,
 | 
			
		||||
				.DataINEndpoint           =
 | 
			
		||||
					{
 | 
			
		||||
						.Address          = CDC_TX_EPADDR,
 | 
			
		||||
						.Size             = CDC_TXRX_EPSIZE,
 | 
			
		||||
						.Banks            = 1,
 | 
			
		||||
					},
 | 
			
		||||
				.DataOUTEndpoint =
 | 
			
		||||
					{
 | 
			
		||||
						.Address          = CDC_RX_EPADDR,
 | 
			
		||||
						.Size             = CDC_TXRX_EPSIZE,
 | 
			
		||||
						.Banks            = 1,
 | 
			
		||||
					},
 | 
			
		||||
				.NotificationEndpoint =
 | 
			
		||||
					{
 | 
			
		||||
						.Address          = CDC_NOTIFICATION_EPADDR,
 | 
			
		||||
						.Size             = CDC_NOTIFICATION_EPSIZE,
 | 
			
		||||
						.Banks            = 1,
 | 
			
		||||
					},
 | 
			
		||||
			},
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -131,7 +131,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
 | 
			
		|||
		{
 | 
			
		||||
			.Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
 | 
			
		||||
 | 
			
		||||
			.EndpointAddress        = (ENDPOINT_DIR_IN | CDC_NOTIFICATION_EPNUM),
 | 
			
		||||
			.EndpointAddress        = CDC_NOTIFICATION_EPADDR,
 | 
			
		||||
			.Attributes             = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
 | 
			
		||||
			.EndpointSize           = CDC_NOTIFICATION_EPSIZE,
 | 
			
		||||
			.PollingIntervalMS      = 0xFF
 | 
			
		||||
| 
						 | 
				
			
			@ -157,7 +157,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
 | 
			
		|||
		{
 | 
			
		||||
			.Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
 | 
			
		||||
 | 
			
		||||
			.EndpointAddress        = (ENDPOINT_DIR_OUT | CDC_RX_EPNUM),
 | 
			
		||||
			.EndpointAddress        = CDC_RX_EPADDR,
 | 
			
		||||
			.Attributes             = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
 | 
			
		||||
			.EndpointSize           = CDC_TXRX_EPSIZE,
 | 
			
		||||
			.PollingIntervalMS      = 0x01
 | 
			
		||||
| 
						 | 
				
			
			@ -167,7 +167,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
 | 
			
		|||
		{
 | 
			
		||||
			.Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
 | 
			
		||||
 | 
			
		||||
			.EndpointAddress        = (ENDPOINT_DIR_IN | CDC_TX_EPNUM),
 | 
			
		||||
			.EndpointAddress        = CDC_TX_EPADDR,
 | 
			
		||||
			.Attributes             = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
 | 
			
		||||
			.EndpointSize           = CDC_TXRX_EPSIZE,
 | 
			
		||||
			.PollingIntervalMS      = 0x01
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,14 +42,14 @@
 | 
			
		|||
		#include <LUFA/Drivers/USB/USB.h>
 | 
			
		||||
 | 
			
		||||
	/* Macros: */
 | 
			
		||||
		/** Endpoint number of the CDC device-to-host notification IN endpoint. */
 | 
			
		||||
		#define CDC_NOTIFICATION_EPNUM         2
 | 
			
		||||
		/** Endpoint address of the CDC device-to-host notification IN endpoint. */
 | 
			
		||||
		#define CDC_NOTIFICATION_EPADDR        (ENDPOINT_DIR_IN  | 2)
 | 
			
		||||
 | 
			
		||||
		/** Endpoint number of the CDC device-to-host data IN endpoint. */
 | 
			
		||||
		#define CDC_TX_EPNUM                   3
 | 
			
		||||
		/** Endpoint address of the CDC device-to-host data IN endpoint. */
 | 
			
		||||
		#define CDC_TX_EPADDR                  (ENDPOINT_DIR_IN  | 3)
 | 
			
		||||
 | 
			
		||||
		/** Endpoint number of the CDC host-to-device data OUT endpoint. */
 | 
			
		||||
		#define CDC_RX_EPNUM                   4
 | 
			
		||||
		/** Endpoint address of the CDC host-to-device data OUT endpoint. */
 | 
			
		||||
		#define CDC_RX_EPADDR                  (ENDPOINT_DIR_OUT | 4)
 | 
			
		||||
 | 
			
		||||
		/** Size in bytes of the CDC device-to-host notification IN endpoint. */
 | 
			
		||||
		#define CDC_NOTIFICATION_EPSIZE        8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue