diff options
| author | hathach <[email protected]> | 2018-03-06 17:03:19 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-06 17:04:37 +0700 |
| commit | fbeb30a71d8afbcbbdbb312c018f3fb7a7c1f7a0 (patch) | |
| tree | d65e9c6e3afd35abcb4df276865ba212046381ec /tinyusb/class/msc_device.c | |
| parent | c5cb58b2bb229e88747786d4c61cc145322bff8b (diff) | |
change hal_dcd_pipe_open() signature to return bool
- remove endpointhandle_is_valid()
Diffstat (limited to 'tinyusb/class/msc_device.c')
| -rw-r--r-- | tinyusb/class/msc_device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tinyusb/class/msc_device.c b/tinyusb/class/msc_device.c index d3ac68e83..c2fec8810 100644 --- a/tinyusb/class/msc_device.c +++ b/tinyusb/class/msc_device.c @@ -101,9 +101,7 @@ tusb_error_t mscd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int endpoint_handle_t * p_edpt_hdl = ( p_endpoint->bEndpointAddress & TUSB_DIR_DEV_TO_HOST_MASK ) ?
&p_msc->edpt_in : &p_msc->edpt_out;
- (*p_edpt_hdl) = hal_dcd_pipe_open(coreid, p_endpoint);
- ASSERT( endpointhandle_is_valid(*p_edpt_hdl), TUSB_ERROR_DCD_FAILED);
-
+ VERIFY( hal_dcd_pipe_open(coreid, p_endpoint, p_edpt_hdl), TUSB_ERROR_DCD_FAILED );
p_endpoint = (tusb_descriptor_endpoint_t const *) descriptor_next( (uint8_t const*) p_endpoint );
}
|
