Fix Pipe_GetBoundEndpointAddress() returning bad values in some circumstances.
This commit is contained in:
		
							parent
							
								
									0223c3668c
								
							
						
					
					
						commit
						214d5b39fc
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -25,6 +25,8 @@
 | 
				
			||||||
  *  - Core:
 | 
					  *  - Core:
 | 
				
			||||||
  *   - Fixed Low Speed USB devices broken when using the library HID Class driver (thanks to Michael)
 | 
					  *   - Fixed Low Speed USB devices broken when using the library HID Class driver (thanks to Michael)
 | 
				
			||||||
  *   - Fixed possible register corruption in USB Host mode on AVR8 devices when ORDERED_EP_CONFIG is used (thanks to Martin Aakerberg)
 | 
					  *   - Fixed possible register corruption in USB Host mode on AVR8 devices when ORDERED_EP_CONFIG is used (thanks to Martin Aakerberg)
 | 
				
			||||||
 | 
					  *   - Fixed Pipe_GetBoundEndpointAddress() returning invalid endpoint directions on AVR8 architecture devices
 | 
				
			||||||
 | 
					  *     under some circumstances
 | 
				
			||||||
  *  - Library Applications:
 | 
					  *  - Library Applications:
 | 
				
			||||||
  *   - Added handler for SCSI_CMD_START_STOP_UNIT in demos using the Mass Storage class, to prevent ejection errors on *nix systems due to an
 | 
					  *   - Added handler for SCSI_CMD_START_STOP_UNIT in demos using the Mass Storage class, to prevent ejection errors on *nix systems due to an
 | 
				
			||||||
  *     unknown SCSI command
 | 
					  *     unknown SCSI command
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -322,7 +322,8 @@
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				uint8_t UPCFG0X_Temp = UPCFG0X;
 | 
									uint8_t UPCFG0X_Temp = UPCFG0X;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) | ((UPCFG0X_Temp & PEPNUM1) ? ENDPOINT_DIR_OUT : ENDPOINT_DIR_IN));
 | 
									return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) |
 | 
				
			||||||
 | 
									        ((UPCFG0X_Temp & PTOKEN1) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.
 | 
								/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue