diff options
| author | William D. Jones <[email protected]> | 2019-01-10 09:58:06 -0500 |
|---|---|---|
| committer | William D. Jones <[email protected]> | 2019-01-10 09:58:06 -0500 |
| commit | b367baeaf1d64930654f136a2409f1322fc73ab2 (patch) | |
| tree | 710698145d52c72b807971d05512330fde2cc9b1 /src/class/custom/custom_host.c | |
| parent | e4d6f336f0d5004fd9ee3074305b7980ba777dfd (diff) | |
| parent | 5804e56e3c2ab4480bf72d94d997f769a645af47 (diff) | |
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32f4
Diffstat (limited to 'src/class/custom/custom_host.c')
| -rw-r--r-- | src/class/custom/custom_host.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/class/custom/custom_host.c b/src/class/custom/custom_host.c index 9f0b70afb..894e641e8 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_ @@ -111,7 +111,7 @@ tusb_error_t cush_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_ { // FIXME quick hack to test lpc1k custom class with 2 bulk endpoints uint8_t const *p_desc = (uint8_t const *) p_interface_desc; - p_desc = descriptor_next(p_desc); + p_desc = tu_desc_next(p_desc); //------------- Bulk Endpoints Descriptor -------------// for(uint32_t i=0; i<2; i++) @@ -121,10 +121,10 @@ 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); + p_desc = tu_desc_next(p_desc); } (*p_length) = sizeof(tusb_desc_interface_t) + 2*sizeof(tusb_desc_endpoint_t); |
