Better solution - change compile time token names to DEVICE_STATE_AS_GPIOR and HOST_STATE_AS_GPIOR and allow the user to set them to the index of the GPIOR register within the device to use.
This commit is contained in:
		
							parent
							
								
									c1be307393
								
							
						
					
					
						commit
						e426463355
					
				
					 7 changed files with 31 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -117,7 +117,7 @@ LUFA_PATH = ../..
 | 
			
		|||
# LUFA library compile-time options
 | 
			
		||||
LUFA_OPTS  = -D USB_DEVICE_ONLY
 | 
			
		||||
LUFA_OPTS += -D USE_NONSTANDARD_DESCRIPTOR_NAMES
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR0
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
 | 
			
		||||
LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
 | 
			
		||||
LUFA_OPTS += -D TOTAL_NUM_CONFIGURATIONS=1
 | 
			
		||||
LUFA_OPTS += -D USE_RAM_DESCRIPTORS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -117,7 +117,7 @@ LUFA_PATH = ../..
 | 
			
		|||
# LUFA library compile-time options
 | 
			
		||||
LUFA_OPTS  = -D USB_DEVICE_ONLY
 | 
			
		||||
LUFA_OPTS += -D USE_NONSTANDARD_DESCRIPTOR_NAMES
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR0
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
 | 
			
		||||
LUFA_OPTS += -D CONTROL_ONLY_DEVICE
 | 
			
		||||
LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=32
 | 
			
		||||
LUFA_OPTS += -D TOTAL_NUM_CONFIGURATIONS=1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -118,7 +118,7 @@ LUFA_PATH = ../..
 | 
			
		|||
LUFA_OPTS  = -D USB_DEVICE_ONLY
 | 
			
		||||
LUFA_OPTS += -D USE_NONSTANDARD_DESCRIPTOR_NAMES
 | 
			
		||||
LUFA_OPTS += -D CONTROL_ONLY_DEVICE
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR0
 | 
			
		||||
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
 | 
			
		||||
LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
 | 
			
		||||
LUFA_OPTS += -D TOTAL_NUM_CONFIGURATIONS=1
 | 
			
		||||
LUFA_OPTS += -D USE_RAM_DESCRIPTORS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue