diff options
| author | hathach <[email protected]> | 2013-06-23 01:10:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-23 01:10:59 +0700 |
| commit | 2cc5df9b009a0e515be28a01ec50085eda0fcab4 (patch) | |
| tree | 29fe6820a8ea0450069084d2900834786bfc651e /tinyusb/host | |
| parent | fe53297b17f59307d11ebfd303b8d09c7070ff4d (diff) | |
add custom bulk out test
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 89e5ab57b..0a15f9355 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -456,7 +456,7 @@ bool hcd_pipe_is_idle(pipe_handle_t pipe_hdl) void async_advance_isr(ehci_qhd_t * const async_head) { // TODO do we need to close addr0 - if(async_head->is_removing) // closing control pipe of addr0 + if (async_head->is_removing) // closing control pipe of addr0 { async_head->is_removing = 0; async_head->p_qtd_list_head = async_head->p_qtd_list_tail = NULL; @@ -469,17 +469,17 @@ void async_advance_isr(ehci_qhd_t * const async_head) { // check if control endpoint is removing ehci_qhd_t *p_control_qhd = &ehci_data.device[relative_dev_addr].control.qhd; - if( p_control_qhd->is_removing ) + if ( p_control_qhd->is_removing ) { - p_control_qhd->is_removing = 0; - p_control_qhd->used = 0; + p_control_qhd->is_removing = 0; + p_control_qhd->used = 0; // Host Controller has cleaned up its cached data for this device, set state to unplug usbh_devices[relative_dev_addr+1].state = TUSB_DEVICE_STATE_UNPLUG; for (uint8_t i=0; i<EHCI_MAX_QHD; i++) // free all qhd { - ehci_data.device[relative_dev_addr].qhd[i].used = 0; + ehci_data.device[relative_dev_addr].qhd[i].used = 0; ehci_data.device[relative_dev_addr].qhd[i].is_removing = 0; } for (uint8_t i=0; i<EHCI_MAX_QTD; i++) // free all qtd |
