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/hid_device.c | |
| parent | c5cb58b2bb229e88747786d4c61cc145322bff8b (diff) | |
change hal_dcd_pipe_open() signature to return bool
- remove endpointhandle_is_valid()
Diffstat (limited to 'tinyusb/class/hid_device.c')
| -rw-r--r-- | tinyusb/class/hid_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyusb/class/hid_device.c b/tinyusb/class/hid_device.c index 83c064115..73dfde0b0 100644 --- a/tinyusb/class/hid_device.c +++ b/tinyusb/class/hid_device.c @@ -280,8 +280,7 @@ tusb_error_t hidd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int ASSERT_PTR(p_hid, TUSB_ERROR_FAILED);
- p_hid->ept_handle = hal_dcd_pipe_open(coreid, p_desc_endpoint);
- ASSERT( endpointhandle_is_valid(p_hid->ept_handle), TUSB_ERROR_DCD_FAILED);
+ VERIFY( hal_dcd_pipe_open(coreid, p_desc_endpoint, &p_hid->ept_handle), TUSB_ERROR_DCD_FAILED );
p_hid->interface_number = p_interface_desc->bInterfaceNumber;
p_hid->p_report_desc = (p_interface_desc->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD) ? tusbd_descriptor_pointers.p_hid_keyboard_report : tusbd_descriptor_pointers.p_hid_mouse_report;
|
