diff --git a/AT32F425/DAPLink.uvoptx b/AT32F425/DAPLink.uvoptx index 6d5547f..3244069 100644 --- a/AT32F425/DAPLink.uvoptx +++ b/AT32F425/DAPLink.uvoptx @@ -246,7 +246,7 @@ 1 2 1 - 0 + 1 0 0 .\src\descriptor.c diff --git a/AT32F425/src/hid_transfer.c b/AT32F425/src/hid_transfer.c index 30e1ea6..ffc6249 100644 --- a/AT32F425/src/hid_transfer.c +++ b/AT32F425/src/hid_transfer.c @@ -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: diff --git a/AT32F425/src/usb_conf.h b/AT32F425/src/usb_conf.h index e4c50ea..c9cad39 100644 --- a/AT32F425/src/usb_conf.h +++ b/AT32F425/src/usb_conf.h @@ -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