summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-11 21:16:51 +0700
committerhathach <[email protected]>2018-03-11 21:16:51 +0700
commit229a7a23b82d90e34c6fd5b52ef739d3f9668dcb (patch)
tree94d90397f6acf28ccbfdc58fb141122763ec8acb /tinyusb/class/msc
parentd71334c34822c1e7b5b4ecfdcc44c8c3c3843d61 (diff)
shorten TUSB_DESC_TYPE*
Diffstat (limited to 'tinyusb/class/msc')
-rw-r--r--tinyusb/class/msc/msc_device.c2
-rw-r--r--tinyusb/class/msc/msc_host.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/msc/msc_device.c b/tinyusb/class/msc/msc_device.c
index 700fc74c9..cec568264 100644
--- a/tinyusb/class/msc/msc_device.c
+++ b/tinyusb/class/msc/msc_device.c
@@ -95,7 +95,7 @@ tusb_error_t mscd_open(uint8_t port, tusb_descriptor_interface_t const * p_inter
tusb_descriptor_endpoint_t const *p_endpoint = (tusb_descriptor_endpoint_t const *) descriptor_next( (uint8_t const*) p_interface_desc );
for(uint32_t i=0; i<2; i++)
{
- TU_ASSERT(TUSB_DESC_TYPE_ENDPOINT == p_endpoint->bDescriptorType &&
+ TU_ASSERT(TUSB_DESC_ENDPOINT == p_endpoint->bDescriptorType &&
TUSB_XFER_BULK == p_endpoint->bmAttributes.xfer, TUSB_ERROR_DESCRIPTOR_CORRUPTED);
TU_ASSERT( tusb_dcd_edpt_open(port, p_endpoint), TUSB_ERROR_DCD_FAILED );
diff --git a/tinyusb/class/msc/msc_host.c b/tinyusb/class/msc/msc_host.c
index aceb21192..b1e8e84ca 100644
--- a/tinyusb/class/msc/msc_host.c
+++ b/tinyusb/class/msc/msc_host.c
@@ -310,7 +310,7 @@ tusb_error_t msch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con
for(uint32_t i=0; i<2; i++)
{
- SUBTASK_ASSERT(TUSB_DESC_TYPE_ENDPOINT == p_endpoint->bDescriptorType);
+ SUBTASK_ASSERT(TUSB_DESC_ENDPOINT == p_endpoint->bDescriptorType);
SUBTASK_ASSERT(TUSB_XFER_BULK == p_endpoint->bmAttributes.xfer);
pipe_handle_t * p_pipe_hdl = ( p_endpoint->bEndpointAddress & TUSB_DIR_IN_MASK ) ?