Clean up excessive whitespace at the end of each line using the wspurify tool made by Laszlo Monda
This commit is contained in:
		
							parent
							
								
									a8871c7fba
								
							
						
					
					
						commit
						5a4def7478
					
				
					 760 changed files with 12883 additions and 12164 deletions
				
			
		| 
						 | 
				
			
			@ -2,10 +2,10 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
 | 
			
		|||
                            uint16_t Length)
 | 
			
		||||
{
 | 
			
		||||
	uint8_t* DataStream = ((uint8_t*)Buffer + TEMPLATE_BUFFER_OFFSET(Length));
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	if (!(Length))
 | 
			
		||||
	  Endpoint_ClearOUT();
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	while (Length)
 | 
			
		||||
	{
 | 
			
		||||
		uint8_t USB_DeviceState_LCL = USB_DeviceState;
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +16,7 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
 | 
			
		|||
		  return ENDPOINT_RWCSTREAM_BusSuspended;
 | 
			
		||||
		else if (Endpoint_IsSETUPReceived())
 | 
			
		||||
		  return ENDPOINT_RWCSTREAM_HostAborted;
 | 
			
		||||
		  
 | 
			
		||||
 | 
			
		||||
		if (Endpoint_IsOUTReceived())
 | 
			
		||||
		{
 | 
			
		||||
			while (Length && Endpoint_BytesInEndpoint())
 | 
			
		||||
| 
						 | 
				
			
			@ -24,11 +24,11 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
 | 
			
		|||
				TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
				Length--;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			Endpoint_ClearOUT();
 | 
			
		||||
		}		  
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	while (!(Endpoint_IsINReady()))
 | 
			
		||||
	{
 | 
			
		||||
		uint8_t USB_DeviceState_LCL = USB_DeviceState;
 | 
			
		||||
| 
						 | 
				
			
			@ -38,11 +38,11 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
 | 
			
		|||
		else if (USB_DeviceState_LCL == DEVICE_STATE_Suspended)
 | 
			
		||||
		  return ENDPOINT_RWCSTREAM_BusSuspended;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	return ENDPOINT_RWCSTREAM_NoError;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
#undef TEMPLATE_FUNC_NAME
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
 | 
			
		|||
{
 | 
			
		||||
	uint8_t* DataStream     = ((uint8_t*)Buffer + TEMPLATE_BUFFER_OFFSET(Length));
 | 
			
		||||
	bool     LastPacketFull = false;
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	if (Length > USB_ControlRequest.wLength)
 | 
			
		||||
	  Length = USB_ControlRequest.wLength;
 | 
			
		||||
	else if (!(Length))
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +12,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
 | 
			
		|||
	while (Length || LastPacketFull)
 | 
			
		||||
	{
 | 
			
		||||
		uint8_t USB_DeviceState_LCL = USB_DeviceState;
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		if (USB_DeviceState_LCL == DEVICE_STATE_Unattached)
 | 
			
		||||
		  return ENDPOINT_RWCSTREAM_DeviceDisconnected;
 | 
			
		||||
		else if (USB_DeviceState_LCL == DEVICE_STATE_Suspended)
 | 
			
		||||
| 
						 | 
				
			
			@ -25,19 +25,19 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
 | 
			
		|||
		if (Endpoint_IsINReady())
 | 
			
		||||
		{
 | 
			
		||||
			uint16_t BytesInEndpoint = Endpoint_BytesInEndpoint();
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			while (Length && (BytesInEndpoint < USB_ControlEndpointSize))
 | 
			
		||||
			{
 | 
			
		||||
				TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
				Length--;
 | 
			
		||||
				BytesInEndpoint++;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			LastPacketFull = (BytesInEndpoint == USB_ControlEndpointSize);
 | 
			
		||||
			Endpoint_ClearIN();
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	while (!(Endpoint_IsOUTReceived()))
 | 
			
		||||
	{
 | 
			
		||||
		uint8_t USB_DeviceState_LCL = USB_DeviceState;
 | 
			
		||||
| 
						 | 
				
			
			@ -53,4 +53,4 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
 | 
			
		|||
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
#undef TEMPLATE_FUNC_NAME
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
{
 | 
			
		||||
	uint8_t* DataStream = ((uint8_t*)Buffer + TEMPLATE_BUFFER_OFFSET(Length));
 | 
			
		||||
	uint8_t  ErrorCode;
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	if ((ErrorCode = Endpoint_WaitUntilReady()))
 | 
			
		||||
	  return ErrorCode;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -34,7 +34,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
					}
 | 
			
		||||
 | 
			
		||||
					Length -= 8;
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
					TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 7: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 6: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
			case 3: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 2: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 1:	TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
				} while (Length >= 8);	
 | 
			
		||||
				} while (Length >= 8);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -76,4 +76,4 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
#undef TEMPLATE_BUFFER_TYPE
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
#undef TEMPLATE_CLEAR_ENDPOINT
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
{
 | 
			
		||||
	uint8_t* DataStream = ((uint8_t*)Buffer + TEMPLATE_BUFFER_OFFSET(Length));
 | 
			
		||||
	uint8_t  ErrorCode;
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	Pipe_SetPipeToken(TEMPLATE_TOKEN);
 | 
			
		||||
 | 
			
		||||
	if ((ErrorCode = Pipe_WaitUntilReady()))
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
					}
 | 
			
		||||
 | 
			
		||||
					Length -= 8;
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
					TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 7: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 6: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
			case 3: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 2: TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
			case 1:	TEMPLATE_TRANSFER_BYTE(DataStream);
 | 
			
		||||
				} while (Length >= 8);	
 | 
			
		||||
				} while (Length >= 8);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -70,7 +70,7 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
			Length--;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	return PIPE_RWSTREAM_NoError;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -80,3 +80,4 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer,
 | 
			
		|||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
#undef TEMPLATE_CLEAR_PIPE
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue