diff options
| author | Ha Thach <[email protected]> | 2021-01-25 22:55:46 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-25 22:55:46 +0700 |
| commit | 045674745afa59028fbeed6dac5cb5a9c4a6033e (patch) | |
| tree | a51c8ca13b0ca9d38eb6e2c2da0622587d3eb9dd /examples | |
| parent | d489e9d4220c7a4e38b55e8bf64f546edc784ea4 (diff) | |
| parent | 5f999fa6a06ecb7ebec742be0b0175943cdfb774 (diff) | |
Merge pull request #604 from kamtom480/spresense-sdk-2.0.2
Update Spresense SDK and fix dcd issues
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc/src/usb_descriptors.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/device/cdc_msc/src/usb_descriptors.c b/examples/device/cdc_msc/src/usb_descriptors.c index e13b8189b..fa4342165 100644 --- a/examples/device/cdc_msc/src/usb_descriptors.c +++ b/examples/device/cdc_msc/src/usb_descriptors.c @@ -104,6 +104,18 @@ enum #define EPNUM_MSC_OUT 0x04 #define EPNUM_MSC_IN 0x85 +#elif CFG_TUSB_MCU == OPT_MCU_CXD56 + // CXD56 doesn't support a same endpoint number with different direction IN and OUT + // e.g EP1 OUT & EP1 IN cannot exist together + // CXD56 USB driver has fixed endpoint type (bulk/interrupt/iso) and direction (IN/OUT) by its number + // 0 control (IN/OUT), 1 Bulk (IN), 2 Bulk (OUT), 3 In (IN), 4 Bulk (IN), 5 Bulk (OUT), 6 In (IN) + #define EPNUM_CDC_NOTIF 0x83 + #define EPNUM_CDC_OUT 0x02 + #define EPNUM_CDC_IN 0x81 + + #define EPNUM_MSC_OUT 0x05 + #define EPNUM_MSC_IN 0x84 + #else #define EPNUM_CDC_NOTIF 0x81 #define EPNUM_CDC_OUT 0x02 |
