diff options
| author | hathach <[email protected]> | 2019-10-23 21:18:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-10-23 21:18:46 +0700 |
| commit | 661515a8072f2b8ccd601c58120ea87b96158e76 (patch) | |
| tree | 85a7ef0fbcc65fdb589de6b606d89a64f043704a /src/device/dcd.h | |
| parent | 78bf82291ed61f9d13022618a29f7311a111fda1 (diff) | |
adding debug log function
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index bef062fb1..c417ee4be 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -39,7 +39,8 @@ typedef enum
{
- DCD_EVENT_BUS_RESET = 1,
+ DCD_EVENT_INVALID = 0,
+ DCD_EVENT_BUS_RESET,
DCD_EVENT_UNPLUGGED,
DCD_EVENT_SOF,
DCD_EVENT_SUSPEND, // TODO LPM Sleep L1 support
@@ -49,7 +50,9 @@ typedef enum DCD_EVENT_XFER_COMPLETE,
// Not an DCD event, just a convenient way to defer ISR function
- USBD_EVENT_FUNC_CALL
+ USBD_EVENT_FUNC_CALL,
+
+ DCD_EVENT_COUNT
} dcd_eventid_t;
typedef struct TU_ATTR_ALIGNED(4)
|
