Fixed USB_USBTask not being called internally in stream transfers between packets when Partial Stream Transfers are used.
Remove old unused function prototype in the LowLevel MassStorage device demo.
This commit is contained in:
		
							parent
							
								
									110711598a
								
							
						
					
					
						commit
						5c274d106b
					
				
					 5 changed files with 13 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -53,16 +53,16 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
 | 
			
		|||
		{
 | 
			
		||||
			TEMPLATE_CLEAR_ENDPOINT();
 | 
			
		||||
 | 
			
		||||
			#if !defined(INTERRUPT_CONTROL_ENDPOINT)
 | 
			
		||||
			USB_USBTask();
 | 
			
		||||
			#endif
 | 
			
		||||
 | 
			
		||||
			if (BytesProcessed != NULL)
 | 
			
		||||
			{
 | 
			
		||||
				*BytesProcessed += BytesInTransfer;
 | 
			
		||||
				return ENDPOINT_RWSTREAM_IncompleteTransfer;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			#if !defined(INTERRUPT_CONTROL_ENDPOINT)
 | 
			
		||||
			USB_USBTask();
 | 
			
		||||
			#endif
 | 
			
		||||
 | 
			
		||||
			if ((ErrorCode = Endpoint_WaitUntilReady()))
 | 
			
		||||
			  return ErrorCode;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue