add CDC USB profile, now can see debug messages from just USB

This commit is contained in:
Conor Patrick
2018-12-30 23:04:39 -05:00
parent 57879291cc
commit 05d99120cd
12 changed files with 2092 additions and 28 deletions

View File

@@ -112,10 +112,17 @@ USBD_ClassTypeDef USBD_HID =
NULL, /*SOF */
NULL,
NULL,
USBD_HID_GetFSCfgDesc,
USBD_HID_GetFSCfgDesc,
USBD_HID_GetFSCfgDesc,
USBD_HID_GetDeviceQualifierDesc,
NULL,
NULL,
NULL,
NULL,
// USBD_HID_GetFSCfgDesc,
// USBD_HID_GetFSCfgDesc,
// USBD_HID_GetFSCfgDesc,
// USBD_HID_GetDeviceQualifierDesc,
};
#define USBD_HID_CfgHSDesc USBD_HID_OtherSpeedCfgDesc
@@ -388,6 +395,7 @@ static uint8_t USBD_HID_Setup (USBD_HandleTypeDef *pdev,
{
len = MIN(HID_FIDO_REPORT_DESC_SIZE , req->wLength);
pbuf = HID_MOUSE_ReportDesc;
printf1(TAG_GREEN,"get report desc\r\n");
}
else if(req->wValue >> 8 == HID_DESCRIPTOR_TYPE)
{