summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-05 14:00:37 +0700
committerhathach <[email protected]>2013-04-05 14:00:37 +0700
commit68dddefe7b87583cf2eaac68f2d77e2a5efd3d69 (patch)
tree33f1e4d93a517453992abf922629822f017b183c /tinyusb
parentfcb8e295ecf5b50ffe2ec98d648d461bc215e2af (diff)
add control xfer for ehci controller fake: ehci_controller_control_xfer_proceed
refractor test code
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/core/std_request.h2
-rw-r--r--tinyusb/host/ehci/ehci.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/tinyusb/core/std_request.h b/tinyusb/core/std_request.h
index 06b94c3ca..f5d1e84e7 100644
--- a/tinyusb/core/std_request.h
+++ b/tinyusb/core/std_request.h
@@ -59,7 +59,7 @@ typedef ATTR_PREPACKED struct ATTR_PACKED {
ATTR_PREPACKED struct ATTR_PACKED {
uint8_t recipient : 5; /**< Recipient type. */
uint8_t type : 2; /**< Request type. */
- uint8_t direction : 1; /**< Direction type. */
+ uint8_t direction : 1; /**< Direction type. tusb_direction_t */
} bmRequestType;
uint8_t bRequest;
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index b698fa229..6b179e99b 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -402,7 +402,6 @@ tusb_error_t hcd_pipe_close(pipe_handle_t pipe_hdl)
return TUSB_ERROR_NONE;
}
-
//--------------------------------------------------------------------+
// EHCI Interrupt Handler
//--------------------------------------------------------------------+
@@ -539,7 +538,6 @@ void period_list_process_isr(ehci_qhd_t const * const period_head)
}
max_loop++;
}
-
}
void xfer_error_isr(uint8_t hostid)
@@ -788,7 +786,6 @@ static void qtd_init(ehci_qtd_t* p_qtd, uint32_t data_ptr, uint16_t total_bytes)
p_qtd->total_bytes = total_bytes;
p_qtd->buffer[0] = data_ptr;
-
for(uint8_t i=1; i<5; i++)
{
p_qtd->buffer[i] |= align4k( p_qtd->buffer[i-1] ) + 4096;