Fix errors in the SingleUSBModeTest build test. Fix logic errors in USBMode.h.
This commit is contained in:
		
							parent
							
								
									0c012ede5f
								
							
						
					
					
						commit
						940145ca6d
					
				
					 3 changed files with 14 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -239,12 +239,14 @@
 | 
			
		|||
				#define USB_CAN_BE_DEVICE
 | 
			
		||||
			#endif
 | 
			
		||||
 | 
			
		||||
			#if   ( defined(USB_CAN_BE_DEVICE) &&  defined(USB_CAN_BE_HOST))
 | 
			
		||||
				#define USB_CAN_BE_BOTH
 | 
			
		||||
			#elif ( defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))
 | 
			
		||||
				#define USB_DEVICE_ONLY
 | 
			
		||||
			#if ( defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))
 | 
			
		||||
				#if !defined(USB_DEVICE_ONLY)
 | 
			
		||||
					#define USB_DEVICE_ONLY
 | 
			
		||||
				#endif
 | 
			
		||||
			#elif (!defined(USB_CAN_BE_DEVICE) &&  defined(USB_CAN_BE_HOST))
 | 
			
		||||
				#define USB_HOST_ONLY
 | 
			
		||||
				#if !defined(USB_HOST_ONLY)
 | 
			
		||||
					#define USB_HOST_ONLY
 | 
			
		||||
				#endif
 | 
			
		||||
			#endif
 | 
			
		||||
 | 
			
		||||
			#if defined(USB_HOST_ONLY)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue