Răsfoiți Sursa

fix:默认HID键盘没起作用

alienwalker 4 ani în urmă
părinte
comite
df54434b7b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      bsp/common/src/core_usb_app.c

+ 2 - 2
bsp/common/src/core_usb_app.c

@@ -324,7 +324,7 @@ static usb_endpoint_descriptor_t prvCore_HIDEndpointDesc[2] =
 				.bDescriptorType = UDESC_ENDPOINT,
 				.bEndpointAddress = UE_DIR_IN|DEVICE_HID_KEYBOARD_EP_IN,
 				.bmAttributes = UE_INTERRUPT,
-				.wMaxPacketSize = {0x40,0x00},
+				.wMaxPacketSize = {0x08,0x00},
 				.bInterval = 10,
 		},
 		{
@@ -332,7 +332,7 @@ static usb_endpoint_descriptor_t prvCore_HIDEndpointDesc[2] =
 				.bDescriptorType = UDESC_ENDPOINT,
 				.bEndpointAddress = UE_DIR_OUT|DEVICE_HID_KEYBOARD_EP_OUT,
 				.bmAttributes = UE_INTERRUPT,
-				.wMaxPacketSize = {0x40,0x00},
+				.wMaxPacketSize = {0x08,0x00},
 				.bInterval = 10,
 		},
 };