diff options
| author | hathach <[email protected]> | 2013-05-09 12:49:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-09 12:49:52 +0700 |
| commit | 63add701391ae30cd43bb2a06d87df3dda5803b8 (patch) | |
| tree | 303dbd847a80ac40fd24757181a57471cc26989f /tinyusb/host/ehci | |
| parent | 363b22a55de585acbed2ef0e9e105ba4d40b8b4e (diff) | |
test clean up
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 43dae3235..21c457c17 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -533,11 +533,12 @@ void async_list_process_isr(ehci_qhd_t * const async_head) void period_list_process_isr(uint8_t hostid, uint8_t interval_ms) { uint8_t max_loop = 0; + uint32_t const period_1ms_addr = (uint32_t) get_period_head(hostid, 1); ehci_link_t next_item = * get_period_head(hostid, interval_ms); // TODO abstract max loop guard for period while( !next_item.terminate && - !(interval_ms > 1 && align32(next_item.address) == (uint32_t) get_period_head(hostid, 1)) && + !(interval_ms > 1 && period_1ms_addr == align32(next_item.address)) && max_loop < (EHCI_MAX_QHD + EHCI_MAX_ITD + EHCI_MAX_SITD)) { switch ( next_item.type ) |
