add TUSB_CFG_HOST_CONTROLLER_START_INDEX

update usbh_init and test code for TUSB_CFG_HOST_CONTROLLER_START_INDEX
clean up some
This commit is contained in:
hathach
2013-02-08 12:12:10 +07:00
parent ef0e105da6
commit 489b98cb93
7 changed files with 104 additions and 79 deletions
+4
View File
@@ -98,6 +98,10 @@
#warning TUSB_CFG_HOST_CONTROLLER_NUM is not defined, default value is 1
#endif
#ifndef TUSB_CFG_HOST_CONTROLLER_START_INDEX
#error TUSB_CFG_HOST_CONTROLLER_START_INDEX is not defined
#endif
#ifndef TUSB_CFG_HOST_DEVICE_MAX
#define TUSB_CFG_HOST_DEVICE_MAX 1
#warning TUSB_CFG_HOST_DEVICE_MAX is not defined, default value is 1