From 3c767e9f44ff6e430f85f7fae7c38ee8aca3b6e2 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 26 Mar 2013 13:07:42 +0700 Subject: add field to endpoint maxpacketsize (mult) refractor hidh_open_subtask & hidh_keyboard_open add ATTR_PACKED_STRUCT(x) - TODO remove ugly pre_pack & post pack --- tinyusb/host/ehci/ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb/host') diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index a8841545e..badb3d06d 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -513,7 +513,7 @@ pipe_handle_t hcd_pipe_open(uint8_t dev_addr, tusb_descriptor_endpoint_t const * ehci_qhd_t * const p_qhd = qhd_find_free(dev_addr); ASSERT_PTR(p_qhd, null_handle); - qhd_init(p_qhd, dev_addr, p_endpoint_desc->wMaxPacketSize, p_endpoint_desc->bEndpointAddress, p_endpoint_desc->bmAttributes.xfer); + qhd_init(p_qhd, dev_addr, p_endpoint_desc->wMaxPacketSize.size, p_endpoint_desc->bEndpointAddress, p_endpoint_desc->bmAttributes.xfer); p_qhd->class_code = class_code; ehci_qhd_t * list_head; -- cgit v1.3.1