summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-24 13:17:01 +0700
committerGitHub <[email protected]>2019-10-24 13:17:01 +0700
commit5d975d93139e0ce346372dc07ca34ef9df7b0287 (patch)
tree8661248bd0392312a212dd02e07b06f6fa248da8 /src/device/dcd.h
parente413c9efa303d70de019a91aa415384fe80ca78f (diff)
parent6f952a8e84acfbc962cf3d37ed72bddefebaf58b (diff)
Merge pull request #203 from hathach/develop
add log support using uart with CFG_TUSB_DEBUG >= 2, close #200
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h7
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)