Moved USBtoSerial demo the Projects directory, as it is simply an expanded CDC demo. Added const qualifier to Endpoint/Pipe stream write routines.
This commit is contained in:
		
							parent
							
								
									c3dfc58707
								
							
						
					
					
						commit
						de70f0f1cf
					
				
					 36 changed files with 60 additions and 3582 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
uint8_t TEMPLATE_FUNC_NAME (void* Buffer, uint16_t Length __CALLBACK_PARAM)
 | 
			
		||||
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer, uint16_t Length __CALLBACK_PARAM)
 | 
			
		||||
{
 | 
			
		||||
	uint8_t* DataStream = (uint8_t*)(Buffer + TEMPLATE_BUFFER_OFFSET(Length));
 | 
			
		||||
	uint8_t  ErrorCode;
 | 
			
		||||
| 
						 | 
				
			
			@ -71,6 +71,7 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer, uint16_t Length __CALLBACK_PARAM)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#undef TEMPLATE_FUNC_NAME
 | 
			
		||||
#undef TEMPLATE_BUFFER_TYPE
 | 
			
		||||
#undef TEMPLATE_TRANSFER_BYTE
 | 
			
		||||
#undef TEMPLATE_CLEAR_ENDPOINT
 | 
			
		||||
#undef TEMPLATE_BUFFER_OFFSET
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue