allow configure host/device by controller basic

- make changes to adapt
add mcu_capacity.h
This commit is contained in:
hathach
2013-03-04 16:21:41 +07:00
parent 656da2992d
commit 94c004724c
9 changed files with 135 additions and 30 deletions
+7 -2
View File
@@ -55,14 +55,19 @@
extern "C" {
#endif
//--------------------------------------------------------------------+
// CONTROLLER CONFIGURATION
//--------------------------------------------------------------------+
#define TUSB_CFG_CONTROLLER0_MODE TUSB_MODE_HOST
#define TUSB_CFG_CONTROLLER1_MODE TUSB_MODE_HOST
//--------------------------------------------------------------------+
// HOST CONFIGURATION
//--------------------------------------------------------------------+
#define TUSB_CFG_HOST
//------------- CORE/CONTROLLER -------------//
//------------- CORE -------------//
#define TUSB_CFG_HOST_CONTROLLER_START_INDEX 0
#define TUSB_CFG_HOST_CONTROLLER_NUM (2 - TUSB_CFG_HOST_CONTROLLER_START_INDEX)
#define TUSB_CFG_HOST_DEVICE_MAX 2
#define TUSB_CFG_CONFIGURATION_MAX 2