From 72b42054e582cbd402bc72498463dd7150d45ecc Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 3 Mar 2013 12:37:44 +0700 Subject: [PATCH] refractor --- tests/test/host/ehci/test_ehci.c | 10 +++++----- tests/test/support/tusb_config.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test/host/ehci/test_ehci.c b/tests/test/host/ehci/test_ehci.c index 6b6f5abdb..35e068d73 100644 --- a/tests/test/host/ehci/test_ehci.c +++ b/tests/test/host/ehci/test_ehci.c @@ -45,8 +45,6 @@ #include "ehci.h" extern ehci_data_t ehci_data; -extern ehci_link_t period_frame_list0[EHCI_FRAMELIST_SIZE]; -extern ehci_link_t period_frame_list1[EHCI_FRAMELIST_SIZE]; LPC_USB0_Type lpc_usb0; LPC_USB1_Type lpc_usb1; @@ -307,9 +305,11 @@ void test_register_portsc(void) //--------------------------------------------------------------------+ void test_ehci_data(void) { - // period fram list alignment - TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list0 ); - TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list1 ); + for(uint32_t i=0; i