summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-07-22 00:49:45 +0700
committerGitHub <[email protected]>2021-07-22 00:49:45 +0700
commite971a4332dc6dc0580e1d71e4fc8866296f8159c (patch)
tree2b29ee375b0502bf04b62a89ad8c15681bfaf552 /src/device/dcd.h
parentc737aa6fbb12fb9ed4c6eecbac58832e4bd2d436 (diff)
parentaff7b100ca87482e9e1d29f7e854d77cadbd6b98 (diff)
Merge pull request #975 from hathach/max-endpoint
Add DCD Attribute for Max endpoint
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index 63e97df96..8bfad9b72 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -30,11 +30,24 @@
#include "common/tusb_common.h"
#include "osal/osal.h"
#include "common/tusb_fifo.h"
+#include "dcd_attr.h"
#ifdef __cplusplus
extern "C" {
#endif
+//--------------------------------------------------------------------+
+// Configuration
+//--------------------------------------------------------------------+
+
+#ifndef CFG_TUD_ENDPPOINT_MAX
+ #define CFG_TUD_ENDPPOINT_MAX DCD_ATTR_ENDPOINT_MAX
+#endif
+
+//--------------------------------------------------------------------+
+// MACRO CONSTANT TYPEDEF PROTYPES
+//--------------------------------------------------------------------+
+
typedef enum
{
DCD_EVENT_INVALID = 0,