bulk write implemented but not yet tested. bulk read improved

This commit is contained in:
2017-12-23 22:38:21 +01:00
parent 7f682b2dcd
commit 2f5e30b8a4
6 changed files with 158 additions and 27 deletions
@@ -646,9 +646,12 @@ uint8_t USBD_CDC_DataIn (USBD_HandleTypeDef *pdev, uint8_t epnum)
if(pdev->pClassData2 != NULL)
{
hcdc->TxState = 0;
USBD_CDC_TransmitDone(pdev);
if (epnum == CDC_IN_EP) {
hcdc->TxState = 0;
USBD_CDC_TransmitDone(pdev);
} else if (epnum == CDC_CMD_EP) {
// command EP send done
}
return USBD_OK;
}