From 6d30ae1f320b8f1a2f8770d8ae134b0ab480ea63 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 7 Mar 2013 16:10:16 +0700 Subject: guard check for open iso pipe --- tinyusb/host/ehci/ehci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tinyusb') diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 8bae98cac..94c659242 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -348,6 +348,9 @@ pipe_handle_t hcd_pipe_open(uint8_t dev_addr, tusb_descriptor_endpoint_t const * { pipe_handle_t const null_handle = { .dev_addr = 0, .xfer_type = 0, .index = 0 }; + if (p_endpoint_desc->bmAttributes.xfer == TUSB_XFER_ISOCHRONOUS) + return null_handle; // TODO not support ISO yet + //------------- find a free queue head -------------// uint8_t index=0; while( indexnext.type = EHCI_QUEUE_ELEMENT_QHD; return (pipe_handle_t) { .dev_addr = dev_addr, .xfer_type = p_endpoint_desc->bmAttributes.xfer, .index = index}; - -// return null_handle; } //--------------------------------------------------------------------+ -- cgit v1.3.1