Added new EEPROM and FLASH buffer versions of the Endpoint and Pipe stream functions...
[pub/USBasp.git] / Demos / Host / LowLevel / StillImageHost / Lib / StillImageCommands.c
index f2f666b..bf85750 100644 (file)
@@ -109,10 +109,10 @@ uint8_t SImage_RecieveBlockHeader(void)
        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
@@ -190,8 +190,8 @@ uint8_t SImage_RecieveBlockHeader(void)
 \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
@@ -211,8 +211,8 @@ void SImage_SendData(void* Buffer, uint16_t Bytes)
 \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
@@ -257,7 +257,7 @@ bool SImage_IsEventReceived(void)
 \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