}\r
\r
/* Send the PIMA command block to the attached device */\r
- Pipe_ClearCurrentBank();\r
+ Pipe_ClearOUT();\r
}\r
\r
/* Freeze pipe after use */\r
Pipe_Read_Stream_LE(&PIMA_EventBlock, sizeof(PIMA_EventBlock));\r
\r
/* Clear the pipe after read complete to prepare for next event */\r
- Pipe_ClearCurrentBank();\r
+ Pipe_ClearIN();\r
\r
/* Freeze the event pipe again after use */\r
Pipe_Freeze();\r
Pipe_Unfreeze();\r
\r
/* Wait until data received on the IN pipe */\r
- while (!(Pipe_ReadWriteAllowed()))\r
+ while (!(Pipe_IsReadWriteAllowed()))\r
{\r
/* Check to see if a new frame has been issued (1ms elapsed) */\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))\r
}\r
\r
/* Clear pipe bank after use */\r
- Pipe_ClearCurrentBank();\r
+ Pipe_ClearIN();\r
}\r
\r
/* Freeze the IN pipe after use */\r
Pipe_Write_Stream_LE(Buffer, Bytes);\r
\r
/* Send the last packet to the attached device */\r
- Pipe_ClearCurrentBank();\r
+ Pipe_ClearOUT();\r
\r
/* Freeze the pipe again after use */\r
Pipe_Freeze();\r