diff options
| author | hathach <[email protected]> | 2013-04-21 00:28:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-21 00:28:25 +0700 |
| commit | 357888a5e5dbb574db44bb29b3a07499c0d531c1 (patch) | |
| tree | 7b0c90354cbecd470aa7442229c61aefab9c09ff /tests/test/support | |
| parent | a9010c17862b56fd337716253f2059fb2fcb72b7 (diff) | |
rename nxp_sof_received to nxp_int_sof
implementing freeRTOS integration
change get_period_frame_list from using lst_idx to hostid (fix bug)
adding polling interval supported for interrupt: 1ms, 2ms, 4ms, 8ms
- add interval_ms to get_period_head function
- add bInterval to qhd_init
- add support for sub-frame (less than 8 micro frames) interval
- add bunch of test for interrupt different intervals
Diffstat (limited to 'tests/test/support')
| -rw-r--r-- | tests/test/support/ehci_controller.c | 2 | ||||
| -rw-r--r-- | tests/test/support/ehci_controller.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test/support/ehci_controller.c b/tests/test/support/ehci_controller.c index 762691c3a..d785109a1 100644 --- a/tests/test/support/ehci_controller.c +++ b/tests/test/support/ehci_controller.c @@ -123,7 +123,7 @@ void ehci_controller_run(uint8_t hostid) complete_all_qtd_in_list((ehci_qhd_t*) regs->async_list_base); //------------- Period List -------------// - complete_all_qtd_in_list( get_period_head(hostid) ); + complete_all_qtd_in_list( get_period_head(hostid, 1) ); regs->usb_sts = EHCI_INT_MASK_NXP_ASYNC | EHCI_INT_MASK_NXP_PERIODIC; hcd_isr(hostid); diff --git a/tests/test/support/ehci_controller.h b/tests/test/support/ehci_controller.h index e87fb95d0..5b8206762 100644 --- a/tests/test/support/ehci_controller.h +++ b/tests/test/support/ehci_controller.h @@ -64,9 +64,9 @@ void ehci_controller_device_plug(uint8_t hostid, tusb_speed_t speed); void ehci_controller_device_unplug(uint8_t hostid); ehci_registers_t* get_operational_register(uint8_t hostid); -ehci_link_t* get_period_frame_list(uint8_t list_idx); +ehci_link_t* get_period_frame_list(uint8_t hostid); ehci_qhd_t* get_async_head(uint8_t hostid); -ehci_qhd_t* get_period_head(uint8_t hostid); +ehci_qhd_t* get_period_head(uint8_t hostid, uint8_t interval_ms); ehci_qhd_t* get_control_qhd(uint8_t dev_addr); ehci_qtd_t* get_control_qtds(uint8_t dev_addr); ehci_qhd_t* qhd_get_from_pipe_handle(pipe_handle_t pipe_hdl); |
