summaryrefslogtreecommitdiff
path: root/tinyusb/class/custom_class_host.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-12 17:55:15 +0700
committerhathach <[email protected]>2018-04-12 17:55:15 +0700
commit752a9f45d70959e36cf8c0cf3a5cd0c24731635e (patch)
tree518c66e1efc12a0cf74ff256a96ccedecb9ef4ef /tinyusb/class/custom_class_host.c
parent6d8f4bca47d31ba4d114aa216042913031c56f1a (diff)
rename ASSERT_ERR to TU_ASSERT_ERR to prevent conflict with user code
Diffstat (limited to 'tinyusb/class/custom_class_host.c')
-rw-r--r--tinyusb/class/custom_class_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/custom_class_host.c b/tinyusb/class/custom_class_host.c
index 6aca2bfb3..20b06d184 100644
--- a/tinyusb/class/custom_class_host.c
+++ b/tinyusb/class/custom_class_host.c
@@ -73,7 +73,7 @@ static tusb_error_t cush_validate_paras(uint8_t dev_addr, uint16_t vendor_id, ui
//--------------------------------------------------------------------+
tusb_error_t tusbh_custom_read(uint8_t dev_addr, uint16_t vendor_id, uint16_t product_id, void * p_buffer, uint16_t length)
{
- ASSERT_ERR( cush_validate_paras(dev_addr, vendor_id, product_id, p_buffer, length) );
+ TU_ASSERT_ERR( cush_validate_paras(dev_addr, vendor_id, product_id, p_buffer, length) );
if ( !hcd_pipe_is_idle(custom_interface[dev_addr-1].pipe_in) )
{
@@ -87,7 +87,7 @@ tusb_error_t tusbh_custom_read(uint8_t dev_addr, uint16_t vendor_id, uint16_t pr
tusb_error_t tusbh_custom_write(uint8_t dev_addr, uint16_t vendor_id, uint16_t product_id, void const * p_data, uint16_t length)
{
- ASSERT_ERR( cush_validate_paras(dev_addr, vendor_id, product_id, p_data, length) );
+ TU_ASSERT_ERR( cush_validate_paras(dev_addr, vendor_id, product_id, p_data, length) );
if ( !hcd_pipe_is_idle(custom_interface[dev_addr-1].pipe_out) )
{