瀏覽代碼

fix:默认HID键盘没起作用

alienwalker 4 年之前
父節點
當前提交
df54434b7b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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,
 		},
 };