diff options
| author | hathach <[email protected]> | 2013-03-04 18:01:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-04 18:01:05 +0700 |
| commit | a259be6edf5bb0f8c4e77f3b321a826d8e86bd25 (patch) | |
| tree | 2aca3e082ed1b9f1656e593fa49b9f82b0d4bc4e /tests/test/host | |
| parent | e1033b9b3c10a75fece0c2c398f5ed3f4b08d174 (diff) | |
refractor
- remove TUSB_CFG_HOST_CONTROLLER_START_INDEX
Diffstat (limited to 'tests/test/host')
| -rw-r--r-- | tests/test/host/ehci/test_ehci_init.c | 10 | ||||
| -rw-r--r-- | tests/test/host/ehci/test_ehci_structure.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/test/host/ehci/test_ehci_init.c b/tests/test/host/ehci/test_ehci_init.c index ab4e8d219..9e698322a 100644 --- a/tests/test/host/ehci/test_ehci_init.c +++ b/tests/test/host/ehci/test_ehci_init.c @@ -83,7 +83,7 @@ void test_hcd_init_usbint(void) for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - ehci_registers_t* const regs = get_operational_register(i+TUSB_CFG_HOST_CONTROLLER_START_INDEX); + ehci_registers_t* const regs = get_operational_register(i+CONTROLLER_HOST_START_INDEX); //------------- USB INT Enable-------------// TEST_ASSERT(regs->usb_int_enable_bit.usb_error); @@ -107,7 +107,7 @@ void test_hcd_init_async_list(void) for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - uint8_t hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX; + uint8_t hostid = i+CONTROLLER_HOST_START_INDEX; ehci_registers_t * const regs = get_operational_register(hostid); ehci_qhd_t * const async_head = get_async_head(hostid); @@ -132,7 +132,7 @@ void test_hcd_init_period_list(void) for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - uint8_t const hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX; + uint8_t const hostid = i+CONTROLLER_HOST_START_INDEX; ehci_registers_t* const regs = get_operational_register(hostid); ehci_qhd_t * const period_head = get_period_head(hostid); ehci_link_t * const framelist = get_period_frame_list(hostid); @@ -160,7 +160,7 @@ void test_hcd_init_tt_control(void) for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - uint8_t const hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX; + uint8_t const hostid = i+CONTROLLER_HOST_START_INDEX; ehci_registers_t* const regs = get_operational_register(hostid); TEST_ASSERT_EQUAL(0, regs->tt_control); @@ -173,7 +173,7 @@ void test_hcd_init_usbcmd(void) for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - uint8_t const hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX; + uint8_t const hostid = i+CONTROLLER_HOST_START_INDEX; ehci_registers_t* const regs = get_operational_register(hostid); TEST_ASSERT(regs->usb_cmd_bit.async_enable); diff --git a/tests/test/host/ehci/test_ehci_structure.c b/tests/test/host/ehci/test_ehci_structure.c index 7a5ff85d5..1dc5caf7b 100644 --- a/tests/test/host/ehci/test_ehci_structure.c +++ b/tests/test/host/ehci/test_ehci_structure.c @@ -305,7 +305,7 @@ void test_ehci_data(void) { for(uint32_t i=0; i<CONTROLLER_HOST_NUMBER; i++) { - uint8_t hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX; + uint8_t hostid = i+CONTROLLER_HOST_START_INDEX; TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)get_period_frame_list(hostid) ); } |
