mirror of
https://github.com/XIVN1987/DAPLink.git
synced 2026-09-27 06:26:16 +00:00
correct AT32F425 CDC RX function
This commit is contained in:
@@ -97,7 +97,6 @@ static usb_sts_type class_setup_handler(void *udev, usb_setup_type *setup)
|
||||
break;
|
||||
|
||||
default:
|
||||
usbd_ctrl_unsupport(usbd);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -175,9 +174,7 @@ static usb_sts_type class_ept0_rx_handler(void *udev)
|
||||
* @retval status of usb_sts_type
|
||||
*/
|
||||
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)
|
||||
{
|
||||
case HID_INT_IN_EP:
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
|
||||
|
||||
#define USBD_RX_SIZE 128
|
||||
#define USBD_EP0_TX_SIZE 64
|
||||
#define USBD_EP1_TX_SIZE 64
|
||||
#define USBD_EP2_TX_SIZE 64
|
||||
#define USBD_EP3_TX_SIZE 64
|
||||
#define USBD_EP0_TX_SIZE 24
|
||||
#define USBD_EP1_TX_SIZE 20
|
||||
#define USBD_EP2_TX_SIZE 20
|
||||
#define USBD_EP3_TX_SIZE 20
|
||||
#define USBD_EP4_TX_SIZE 20
|
||||
#define USBD_EP5_TX_SIZE 20
|
||||
#define USBD_EP6_TX_SIZE 20
|
||||
|
||||
Reference in New Issue
Block a user