diff options
| author | hathach <[email protected]> | 2018-11-16 21:56:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-11-16 21:56:39 +0700 |
| commit | 215f8603b14cc29e08d8a25e08f8eca44ed90826 (patch) | |
| tree | 9059bf9825f3fc71def0ee1f0204ac3f719e8c71 /src/common | |
| parent | b62ca2e5cdacc2f49cce6a0352ee740e4bac64a9 (diff) | |
nrf5x: refactor device control transfer.
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 5c226f556..32632cd90 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -203,12 +203,14 @@ typedef enum TUSB_EVENT_XFER_STALLED,
}tusb_event_t;
-enum {
+enum
+{
DESC_OFFSET_LEN = 0,
DESC_OFFSET_TYPE = 1
};
-enum {
+enum
+{
INTERFACE_INVALID_NUMBER = 0xff
};
|
