diff options
| author | Ha Thach <[email protected]> | 2021-07-22 00:49:45 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-22 00:49:45 +0700 |
| commit | e971a4332dc6dc0580e1d71e4fc8866296f8159c (patch) | |
| tree | 2b29ee375b0502bf04b62a89ad8c15681bfaf552 /src/device/dcd.h | |
| parent | c737aa6fbb12fb9ed4c6eecbac58832e4bd2d436 (diff) | |
| parent | aff7b100ca87482e9e1d29f7e854d77cadbd6b98 (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.h | 13 |
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, |
