correct AT32F425 CDC RX function

pull/13/head
XIVN1987 3 years ago
parent 851f33663e
commit c0938a4b86
  1. 2
      AT32F425/DAPLink.uvoptx
  2. 5
      AT32F425/src/hid_transfer.c
  3. 8
      AT32F425/src/usb_conf.h

@ -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;
@ -175,9 +174,7 @@ static usb_sts_type class_ept0_rx_handler(void *udev)
* @retval status of usb_sts_type * @retval status of usb_sts_type
*/ */
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

Loading…
Cancel
Save