summaryrefslogtreecommitdiff
path: root/tinyusb/class/custom_class_host.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-28 14:49:00 +0700
committerhathach <[email protected]>2018-03-28 14:49:00 +0700
commit03a4f02b89ccd4bddbfa0b117771ca1905d9f4a6 (patch)
tree8801b27fa93787d75cc558b9e9407215b8ce2b40 /tinyusb/class/custom_class_host.c
parent0d3e66fa0a274d2482d6bbb6dea80508dcd614de (diff)
rename ASSERT to TU_ASSERT to avoid name conflict
Diffstat (limited to 'tinyusb/class/custom_class_host.c')
-rw-r--r--tinyusb/class/custom_class_host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/custom_class_host.c b/tinyusb/class/custom_class_host.c
index 2642a9ec8..318813f4b 100644
--- a/tinyusb/class/custom_class_host.c
+++ b/tinyusb/class/custom_class_host.c
@@ -64,7 +64,7 @@ static tusb_error_t cush_validate_paras(uint8_t dev_addr, uint16_t vendor_id, ui
return TUSB_ERROR_DEVICE_NOT_READY;
}
- ASSERT( p_buffer != NULL && length != 0, TUSB_ERROR_INVALID_PARA);
+ TU_ASSERT( p_buffer != NULL && length != 0, TUSB_ERROR_INVALID_PARA);
return TUSB_ERROR_NONE;
}
@@ -122,7 +122,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);
- ASSERT ( pipehandle_is_valid(*p_pipe_hdl), TUSB_ERROR_HCD_OPEN_PIPE_FAILED );
+ TU_ASSERT ( pipehandle_is_valid(*p_pipe_hdl), TUSB_ERROR_HCD_OPEN_PIPE_FAILED );
p_desc = descriptor_next(p_desc);
}
@@ -154,7 +154,7 @@ void cush_close(uint8_t dev_addr)
memclr_(p_interface, sizeof(custom_interface_info_t));
- ASSERT(err1 == TUSB_ERROR_NONE && err2 == TUSB_ERROR_NONE, (void) 0 );
+ TU_ASSERT(err1 == TUSB_ERROR_NONE && err2 == TUSB_ERROR_NONE, (void) 0 );
}
#endif