mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Reset XMEGA NVM read command to the symbolic NO_OPERATION constant rather than a hard-coded zero.
This commit is contained in:
		
							parent
							
								
									300a05d6c6
								
							
						
					
					
						commit
						4bd36a9775
					
				| @ -72,7 +72,7 @@ void USB_Init( | |||||||
| 	NVM.CMD  = NVM_CMD_READ_CALIB_ROW_gc; | 	NVM.CMD  = NVM_CMD_READ_CALIB_ROW_gc; | ||||||
| 	USB.CAL0 = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBCAL0)); | 	USB.CAL0 = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBCAL0)); | ||||||
| 	USB.CAL1 = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBCAL1)); | 	USB.CAL1 = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBCAL1)); | ||||||
| 	NVM.CMD  = 0; | 	NVM.CMD  = NVM_CMD_NO_OPERATION_gc; | ||||||
| 
 | 
 | ||||||
| 	/* Ugly workaround to ensure an aligned table, since __BIGGEST_ALIGNMENT__ == 1 for the 8-bit AVR-GCC toolchain */ | 	/* Ugly workaround to ensure an aligned table, since __BIGGEST_ALIGNMENT__ == 1 for the 8-bit AVR-GCC toolchain */ | ||||||
| 	USB.EPPTR = ((intptr_t)&USB_EndpointTable[1] & ~(1 << 0)); | 	USB.EPPTR = ((intptr_t)&USB_EndpointTable[1] & ~(1 << 0)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera