correct AT32F425 CDC RX function

This commit is contained in:
XIVN1987
2022-12-29 21:24:27 +08:00
parent 851f33663e
commit c0938a4b86
3 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -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>
-3
View File
@@ -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:
+4 -4
View File
@@ -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