Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.

This commit is contained in:
Dean Camera 2009-05-15 12:27:32 +00:00
parent 76d5e99bb8
commit eeba38e343
11 changed files with 64 additions and 37 deletions

View file

@ -246,7 +246,7 @@ TASK(USB_CDC_Host)
{
/* Get the length of the pipe data, and create a new buffer to hold it */
uint16_t BufferLength = Pipe_BytesInPipe();
uint8_t Buffer[BufferLength];
uint8_t Buffer[BufferLength];
/* Read in the pipe data to the temporary buffer */
Pipe_Read_Stream_LE(Buffer, BufferLength);
@ -267,7 +267,7 @@ TASK(USB_CDC_Host)
/* Check if a packet has been received */
if (Pipe_IsINReceived())
{
/* Discard the event notification */
/* Discard the unused event notification */
Pipe_ClearIN();
}