summaryrefslogtreecommitdiff
path: root/src/class/custom
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-12 00:51:56 +0700
committerGitHub <[email protected]>2018-12-12 00:51:56 +0700
commitb7ad49332cd9a5539e35a75785adb5ca2e79715a (patch)
tree21530d34defa6dd890de30fcf4ace8ec21c5a49a /src/class/custom
parentb2ec8230d9acffbc0df280832b0341b82584b226 (diff)
parentc88e16bd116a826ebd2d9fb348fd3704f6b1f14d (diff)
Merge pull request #20 from hathach/devlocal
Host stack rework
Diffstat (limited to 'src/class/custom')
-rw-r--r--src/class/custom/custom_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/custom/custom_host.c b/src/class/custom/custom_host.c
index 9f0b70afb..e840a2829 100644
--- a/src/class/custom/custom_host.c
+++ b/src/class/custom/custom_host.c
@@ -38,7 +38,7 @@
#include "tusb_option.h"
-#if (MODE_HOST_SUPPORTED && CFG_TUSB_HOST_CUSTOM_CLASS)
+#if (TUSB_OPT_HOST_ENABLED && CFG_TUSB_HOST_CUSTOM_CLASS)
#define _TINY_USB_SOURCE_FILE_
@@ -121,7 +121,7 @@ tusb_error_t cush_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_
pipe_handle_t * p_pipe_hdl = ( p_endpoint->bEndpointAddress & TUSB_DIR_IN_MASK ) ?
&custom_interface[dev_addr-1].pipe_in : &custom_interface[dev_addr-1].pipe_out;
- *p_pipe_hdl = hcd_pipe_open(dev_addr, p_endpoint, TUSB_CLASS_VENDOR_SPECIFIC);
+ *p_pipe_hdl = hcd_edpt_open(dev_addr, p_endpoint, TUSB_CLASS_VENDOR_SPECIFIC);
TU_ASSERT ( pipehandle_is_valid(*p_pipe_hdl), TUSB_ERROR_HCD_OPEN_PIPE_FAILED );
p_desc = descriptor_next(p_desc);