mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Move out the EP_TYPE_* macros to the base USBController.h header, as these are used in the device descriptors as well and thus must not be changed.
This commit is contained in:
		
							parent
							
								
									06d3797bac
								
							
						
					
					
						commit
						69243c5071
					
				| @ -146,33 +146,6 @@ | |||||||
| 			#define USB_OPT_AUTO_PLL                   (0 << 2) | 			#define USB_OPT_AUTO_PLL                   (0 << 2) | ||||||
| 			//@}
 | 			//@}
 | ||||||
| 
 | 
 | ||||||
| 			/** \name Endpoint/Pipe Type Masks */ |  | ||||||
| 			//@{
 |  | ||||||
| 			/** Mask for a CONTROL type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_CONTROL                    0x00 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an ISOCHRONOUS type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_ISOCHRONOUS                0x01 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for a BULK type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_BULK                       0x02 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an INTERRUPT type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_INTERRUPT                  0x03 |  | ||||||
| 			//@}
 |  | ||||||
| 
 |  | ||||||
| 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | ||||||
| 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | ||||||
| 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | ||||||
|  | |||||||
| @ -107,33 +107,6 @@ | |||||||
| 			#define USB_OPT_GCLK_CHANNEL_1             (0 << 3) | 			#define USB_OPT_GCLK_CHANNEL_1             (0 << 3) | ||||||
| 			//@}
 | 			//@}
 | ||||||
| 
 | 
 | ||||||
| 			/** \name Endpoint/Pipe Type Masks */ |  | ||||||
| 			//@{
 |  | ||||||
| 			/** Mask for a CONTROL type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_CONTROL                    0x00 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an ISOCHRONOUS type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_ISOCHRONOUS                0x01 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for a BULK type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_BULK                       0x02 |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an INTERRUPT type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_INTERRUPT                  0x03 |  | ||||||
| 			//@}
 |  | ||||||
| 
 |  | ||||||
| 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | ||||||
| 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | ||||||
| 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | ||||||
|  | |||||||
| @ -62,6 +62,34 @@ | |||||||
| 			#error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. | 			#error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. | ||||||
| 		#endif | 		#endif | ||||||
| 
 | 
 | ||||||
|  | 	/* Defines: */ | ||||||
|  | 		/** \name Endpoint/Pipe Type Masks */ | ||||||
|  | 		//@{
 | ||||||
|  | 		/** Mask for a CONTROL type endpoint or pipe.
 | ||||||
|  | 		 * | ||||||
|  | 		 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. | ||||||
|  | 		 */ | ||||||
|  | 		#define EP_TYPE_CONTROL                    0x00 | ||||||
|  | 
 | ||||||
|  | 		/** Mask for an ISOCHRONOUS type endpoint or pipe.
 | ||||||
|  | 		 * | ||||||
|  | 		 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. | ||||||
|  | 		 */ | ||||||
|  | 		#define EP_TYPE_ISOCHRONOUS                0x01 | ||||||
|  | 
 | ||||||
|  | 		/** Mask for a BULK type endpoint or pipe.
 | ||||||
|  | 		 * | ||||||
|  | 		 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. | ||||||
|  | 		 */ | ||||||
|  | 		#define EP_TYPE_BULK                       0x02 | ||||||
|  | 
 | ||||||
|  | 		/** Mask for an INTERRUPT type endpoint or pipe.
 | ||||||
|  | 		 * | ||||||
|  | 		 *  \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. | ||||||
|  | 		 */ | ||||||
|  | 		#define EP_TYPE_INTERRUPT                  0x03 | ||||||
|  | 		//@}
 | ||||||
|  | 
 | ||||||
| 	/* Architecture Includes: */ | 	/* Architecture Includes: */ | ||||||
| 		#if (ARCH == ARCH_AVR8) | 		#if (ARCH == ARCH_AVR8) | ||||||
| 			#include "AVR8/USBController_AVR8.h" | 			#include "AVR8/USBController_AVR8.h" | ||||||
|  | |||||||
| @ -103,33 +103,6 @@ | |||||||
| 			#define USB_OPT_BUSEVENT_PRIHIGH          ((1 << 1) | (0 << 1)) | 			#define USB_OPT_BUSEVENT_PRIHIGH          ((1 << 1) | (0 << 1)) | ||||||
| 			//@}
 | 			//@}
 | ||||||
| 
 | 
 | ||||||
| 			/** \name Endpoint Type Masks */ |  | ||||||
| 			//@{
 |  | ||||||
| 			/** Mask for a CONTROL type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement for endpoint functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_CONTROL                 USB_EP_TYPE_CONTROL_gc |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an ISOCHRONOUS type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement for endpoint functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_ISOCHRONOUS             USB_EP_TYPE_ISOCHRONOUS_gc |  | ||||||
| 
 |  | ||||||
| 			/** Mask for a BULK type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement for endpoint functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_BULK                    USB_EP_TYPE_BULK_gc |  | ||||||
| 
 |  | ||||||
| 			/** Mask for an INTERRUPT type endpoint or pipe.
 |  | ||||||
| 			 * |  | ||||||
| 			 *  \note See \ref Group_EndpointManagement for endpoint functions. |  | ||||||
| 			 */ |  | ||||||
| 			#define EP_TYPE_INTERRUPT              USB_EP_TYPE_BULK_gc |  | ||||||
| 			//@}
 |  | ||||||
| 
 |  | ||||||
| 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | 			#if !defined(USB_STREAM_TIMEOUT_MS) || defined(__DOXYGEN__) | ||||||
| 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | 				/** Constant for the maximum software timeout period of the USB data stream transfer functions
 | ||||||
| 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | 				 *  (both control and standard) when in either device or host mode. If the next packet of a stream | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera