added minmal libaries
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "usbd_cdc_if.h"
|
||||
|
||||
/* USER CODE BEGIN INCLUDE */
|
||||
|
||||
#include "UsbDataHandler.h"
|
||||
/* USER CODE END INCLUDE */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
@@ -264,6 +264,7 @@ static int8_t CDC_Control_HS(uint8_t cmd, uint8_t* pbuf, uint16_t length)
|
||||
static int8_t CDC_Receive_HS(uint8_t* Buf, uint32_t *Len)
|
||||
{
|
||||
/* USER CODE BEGIN 11 */
|
||||
UsbDataHandler_RxCallback(Buf,*Len);
|
||||
USBD_CDC_SetRxBuffer(&hUsbDeviceHS, &Buf[0]);
|
||||
USBD_CDC_ReceivePacket(&hUsbDeviceHS);
|
||||
return (USBD_OK);
|
||||
|
||||
Reference in New Issue
Block a user