while (!(Pipe_IsReadWriteAllowed()))\r
{\r
/* Check to see if a new frame has been issued (1ms elapsed) */\r
- if (FrameElapsed)\r
+ if (USB_INT_HasOccurred(USB_INT_HSOFI))\r
{\r
/* Clear the flag and decrement the timeout period counter */\r
- FrameElapsed = false;\r
+ USB_INT_Clear(USB_INT_HSOFI);\r
TimeoutMSRem--;\r
\r
/* Check to see if the timeout period for the command has elapsed */\r
\r
/** Function to send the given data to the device, after a command block has been issued.\r
*\r
- * \param Buffer Source data buffer to send to the device\r
- * \param Bytes Number of bytes to send\r
+ * \param[in] Buffer Source data buffer to send to the device\r
+ * \param[in] Bytes Number of bytes to send\r
*/\r
void SImage_SendData(void* Buffer, uint16_t Bytes)\r
{\r
\r
/** Function to receive the given data to the device, after a response block has been received.\r
*\r
- * \param Buffer Destination data buffer to put read bytes from the device\r
- * \param Bytes Number of bytes to receive\r
+ * \param[out] Buffer Destination data buffer to put read bytes from the device\r
+ * \param[in] Bytes Number of bytes to receive\r
*\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum\r
*/\r
\r
/** Clears the stall condition in the attached device on the nominated endpoint number.\r
*\r
- * \param EndpointNum Endpoint number in the attached device whose stall condition is to be cleared\r
+ * \param[in] EndpointNum Endpoint number in the attached device whose stall condition is to be cleared\r
*\r
* \return A value from the USB_Host_SendControlErrorCodes_t enum\r
*/\r