mirror of
https://github.com/XIVN1987/DAPLink.git
synced 2026-09-26 22:16:11 +00:00
correct AT32F425 CDC RX function
This commit is contained in:
@@ -246,7 +246,7 @@
|
|||||||
<GroupNumber>1</GroupNumber>
|
<GroupNumber>1</GroupNumber>
|
||||||
<FileNumber>2</FileNumber>
|
<FileNumber>2</FileNumber>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>.\src\descriptor.c</PathWithFileName>
|
<PathWithFileName>.\src\descriptor.c</PathWithFileName>
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ static usb_sts_type class_setup_handler(void *udev, usb_setup_type *setup)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
usbd_ctrl_unsupport(usbd);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -176,8 +175,6 @@ static usb_sts_type class_ept0_rx_handler(void *udev)
|
|||||||
*/
|
*/
|
||||||
static usb_sts_type class_in_handler(void *udev, uint8_t ept_num)
|
static usb_sts_type class_in_handler(void *udev, uint8_t ept_num)
|
||||||
{
|
{
|
||||||
usbd_core_type *usbd = (usbd_core_type *)udev;
|
|
||||||
|
|
||||||
switch(0x80 | ept_num)
|
switch(0x80 | ept_num)
|
||||||
{
|
{
|
||||||
case HID_INT_IN_EP:
|
case HID_INT_IN_EP:
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
|
|
||||||
#define USBD_RX_SIZE 128
|
#define USBD_RX_SIZE 128
|
||||||
#define USBD_EP0_TX_SIZE 64
|
#define USBD_EP0_TX_SIZE 24
|
||||||
#define USBD_EP1_TX_SIZE 64
|
#define USBD_EP1_TX_SIZE 20
|
||||||
#define USBD_EP2_TX_SIZE 64
|
#define USBD_EP2_TX_SIZE 20
|
||||||
#define USBD_EP3_TX_SIZE 64
|
#define USBD_EP3_TX_SIZE 20
|
||||||
#define USBD_EP4_TX_SIZE 20
|
#define USBD_EP4_TX_SIZE 20
|
||||||
#define USBD_EP5_TX_SIZE 20
|
#define USBD_EP5_TX_SIZE 20
|
||||||
#define USBD_EP6_TX_SIZE 20
|
#define USBD_EP6_TX_SIZE 20
|
||||||
|
|||||||
Reference in New Issue
Block a user