From a259be6edf5bb0f8c4e77f3b321a826d8e86bd25 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 4 Mar 2013 18:01:05 +0700 Subject: [PATCH] refractor - remove TUSB_CFG_HOST_CONTROLLER_START_INDEX --- demos/host/tusb_config.h | 6 +---- tests/test/host/ehci/test_ehci_init.c | 10 ++++---- tests/test/host/ehci/test_ehci_structure.c | 2 +- tests/test/support/tusb_config.h | 4 ++-- tinyusb/host/ehci/ehci.c | 28 +++++++++++++++------- tinyusb/tusb_option.h | 4 ---- 6 files changed, 29 insertions(+), 25 deletions(-) diff --git a/demos/host/tusb_config.h b/demos/host/tusb_config.h index 1b0015dbf..207b6330a 100644 --- a/demos/host/tusb_config.h +++ b/demos/host/tusb_config.h @@ -58,16 +58,12 @@ //--------------------------------------------------------------------+ // CONTROLLER CONFIGURATION //--------------------------------------------------------------------+ -#define TUSB_CFG_CONTROLLER0_MODE (TUSB_MODE_HOST) +#define TUSB_CFG_CONTROLLER0_MODE (TUSB_MODE_NONE) #define TUSB_CFG_CONTROLLER1_MODE (TUSB_MODE_HOST) //--------------------------------------------------------------------+ // HOST CONFIGURATION //--------------------------------------------------------------------+ - -//------------- CONTROLLER -------------// -#define TUSB_CFG_HOST_CONTROLLER_START_INDEX 0 - #define TUSB_CFG_HOST_DEVICE_MAX 1 #define TUSB_CFG_CONFIGURATION_MAX 1 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; iusb_int_enable_bit.usb_error); @@ -107,7 +107,7 @@ void test_hcd_init_async_list(void) for(uint32_t i=0; itt_control); @@ -173,7 +173,7 @@ void test_hcd_init_usbcmd(void) for(uint32_t i=0; iusb_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