usbh make TU_API_SYNC() public, to implement sync() API, change return of sync API from uint8_t to tusb_xfer_result_t

This commit is contained in:
hathach
2025-06-20 12:51:29 +07:00
parent 221b5288e4
commit 5c974cee23
3 changed files with 51 additions and 71 deletions

View File

@@ -278,6 +278,8 @@ typedef enum {
XFER_RESULT_INVALID
} xfer_result_t;
#define tusb_xfer_result_t xfer_result_t
// TODO remove
enum {
DESC_OFFSET_LEN = 0,