diff options
| author | hathach <[email protected]> | 2013-11-06 12:15:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-06 12:15:11 +0700 |
| commit | b2b53e61fbf7a449f1c3db78df0bb2beddb80984 (patch) | |
| tree | 292c5f9804cec9d6da0dd843c6bff7a9c080d62f /demos | |
| parent | 024858a605c78927f637cadd5e5c5b7764a496bd (diff) | |
refractor dcd_controller_reset & hcd_controller_reset to hal_controller_reset
Diffstat (limited to 'demos')
| -rw-r--r-- | demos/device/device_os_none/tusb_config.h | 4 | ||||
| -rw-r--r-- | demos/device/device_os_none/tusb_descriptors.c | 4 | ||||
| -rw-r--r-- | demos/host/src/tusb_config.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/device/device_os_none/tusb_config.h b/demos/device/device_os_none/tusb_config.h index 26132c3b8..183667a48 100644 --- a/demos/device/device_os_none/tusb_config.h +++ b/demos/device/device_os_none/tusb_config.h @@ -60,7 +60,7 @@ // CONTROLLER CONFIGURATION
//--------------------------------------------------------------------+
#define TUSB_CFG_CONTROLLER_0_MODE (TUSB_MODE_DEVICE)
-#define TUSB_CFG_CONTROLLER_1_MODE (TUSB_MODE_NONE)
+#define TUSB_CFG_CONTROLLER_1_MODE (TUSB_MODE_DEVICE)
//--------------------------------------------------------------------+
// HOST CONFIGURATION
@@ -81,7 +81,7 @@ //--------------------------------------------------------------------+
// DEVICE CONFIGURATION
//--------------------------------------------------------------------+
-#define TUSB_CFG_DEVICE_FULLSPEED 1 // TODO refractor
+#define TUSB_CFG_DEVICE_FULLSPEED 0 // TODO refractor
#define TUSB_CFG_DEVICE_USE_ROM_DRIVER 0
diff --git a/demos/device/device_os_none/tusb_descriptors.c b/demos/device/device_os_none/tusb_descriptors.c index 2661bda54..7b1796cdc 100644 --- a/demos/device/device_os_none/tusb_descriptors.c +++ b/demos/device/device_os_none/tusb_descriptors.c @@ -371,7 +371,7 @@ app_descriptor_configuration_t app_tusb_desc_configuration = .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x83, .bmAttributes = { .xfer = TUSB_XFER_BULK }, - .wMaxPacketSize = { .size = 64 /*512*/ }, + .wMaxPacketSize = { .size = TUSB_CFG_DEVICE_FULLSPEED ? 64 : 512 }, .bInterval = 1 }, @@ -381,7 +381,7 @@ app_descriptor_configuration_t app_tusb_desc_configuration = .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x03, .bmAttributes = { .xfer = TUSB_XFER_BULK }, - .wMaxPacketSize = { .size = 64 /*512*/ }, + .wMaxPacketSize = { .size = TUSB_CFG_DEVICE_FULLSPEED ? 64 : 512 }, .bInterval = 1 }, #endif diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h index 05c415b13..bbfac4da2 100644 --- a/demos/host/src/tusb_config.h +++ b/demos/host/src/tusb_config.h @@ -76,8 +76,8 @@ #define TUSB_CFG_HOST_HID_KEYBOARD 0
#define TUSB_CFG_HOST_HID_MOUSE 0
#define TUSB_CFG_HOST_HID_GENERIC 0
-#define TUSB_CFG_HOST_MSC 0
-#define TUSB_CFG_HOST_CDC 1
+#define TUSB_CFG_HOST_MSC 1
+#define TUSB_CFG_HOST_CDC 0
#define TUSB_CFG_HOST_CDC_RNDIS 0
//--------------------------------------------------------------------+
|
