Explorar o código

fix:默认HID键盘没起作用

alienwalker %!s(int64=4) %!d(string=hai) anos
pai
achega
df54434b7b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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,
 		},
 };