diff options
| author | hathach <[email protected]> | 2020-09-07 15:19:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-09-07 15:19:20 +0700 |
| commit | 66a10ec9c8042a48053b4af67a932f3cfe9470c2 (patch) | |
| tree | a3f70a3ad963af7cedc9e533180a123265096811 /src/common | |
| parent | b3e81673c0582a07a764981604a560ee3d310ef9 (diff) | |
rework usbh control transfer
use series of complete callback instead of blocking semaphore, which is
more noOS friendly. still working with hid host
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 70d0db942..d6b6ea627 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -276,6 +276,8 @@ typedef struct TU_ATTR_PACKED uint8_t bNumConfigurations ; ///< Number of possible configurations. } tusb_desc_device_t; +TU_VERIFY_STATIC( sizeof(tusb_desc_device_t) == 18, "size is not correct"); + // USB Binary Device Object Store (BOS) Descriptor typedef struct TU_ATTR_PACKED { @@ -431,7 +433,7 @@ typedef struct TU_ATTR_PACKED{ uint16_t wLength; } tusb_control_request_t; -TU_VERIFY_STATIC( sizeof(tusb_control_request_t) == 8, "mostly compiler option issue"); +TU_VERIFY_STATIC( sizeof(tusb_control_request_t) == 8, "size is not correct"); // TODO move to somewhere suitable static inline uint8_t bm_request_type(uint8_t direction, uint8_t type, uint8_t recipient) |
