Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.
Moved the USB device selection logic for ENDPOINT_TOTAL_ENDPOINTS further up in Endpoint.h to where the endpoint bank capabilities are determined, to reduce the total number of device-specific logic. Change USB_Host_WaitMS() to test and disable the HSOFI interrupt before resuming the bus, so that it does not fire before the delay loop has run. Add missing const qualifier to the parameter of USB_Host_ClearPipeStall().
This commit is contained in:
		
							parent
							
								
									c1cfffd8eb
								
							
						
					
					
						commit
						7aaced1e8b
					
				
					 11 changed files with 77 additions and 78 deletions
				
			
		| 
						 | 
				
			
			@ -47,6 +47,7 @@
 | 
			
		|||
  *  - Renamed and moved class driver common constant definitions to make the naming scheme more uniform
 | 
			
		||||
  *  - Changed default value for the reset polarity parameter in the AVRISP-MKII project so that it defaults to active low drive
 | 
			
		||||
  *  - Changed configuration descriptor parser for all host mode projects and class drivers to ensure better compatibility with devices
 | 
			
		||||
  *  - Moved the USB mode specifier constants into a new enum, so that they are semantically related to one another
 | 
			
		||||
  *
 | 
			
		||||
  *  <b>Fixed:</b>
 | 
			
		||||
  *  - Fixed USB_GetHIDReportItemInfo() function modifying the given report item's data when the report item does not exist
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,6 +19,8 @@
 | 
			
		|||
 *      project makefiles using the USB driver of LUFA, or the makefile should be updated to use the new module source variables.
 | 
			
		||||
 *    - The EVENT_USB_InitFailure() event has been removed, as the USB_Init() function will no longer fail; if not USB mode is
 | 
			
		||||
 *      specified, the controller will default to UID selection mode.
 | 
			
		||||
 *    - The USB mode specifier constants have been moved into a new enum and renamed. Existing projects should use the equivalent
 | 
			
		||||
 *      value in the new \ref USB_Modes_t enum.
 | 
			
		||||
 *
 | 
			
		||||
 *  <b>Device Mode</b>
 | 
			
		||||
 *    - Endpoints MUST be allocated in ascending order to ensure that bank corruption does not occur. Ensure that your user application
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue