diff options
| author | hathach <[email protected]> | 2018-03-15 13:22:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-15 13:22:28 +0700 |
| commit | b0ec6124e014178601d6090bb251757c92c8adbf (patch) | |
| tree | 70dc145c1568bb6a6a34609edd9a58d7bdf6ff65 /tinyusb/device/usbd.h | |
| parent | 49a7f8c363c030cb346099a27fdb849aa8f0718d (diff) | |
nrf52 control transfer work reliably
Diffstat (limited to 'tinyusb/device/usbd.h')
| -rw-r--r-- | tinyusb/device/usbd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 8926d225c..cf607f645 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -130,6 +130,13 @@ void tud_umount_cb(uint8_t port); extern osal_semaphore_t usbd_control_xfer_sem_hdl;
+tusb_error_t usbd_control_xfer_substak(uint8_t port, tusb_dir_t dir, uint8_t * buffer, uint16_t length);
+
+static inline bool usbd_control_status(uint8_t port, tusb_dir_t dir)
+{
+ tusb_dcd_control_xfer(port , dir, NULL, 0, false);
+}
+
tusb_error_t usbd_init(void);
void usbd_task( void* param);
|
