diff options
| author | hathach <[email protected]> | 2021-10-24 14:39:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-10-24 14:39:02 +0700 |
| commit | 109b7a666155eb1b59bf946be7319ac11bc625ea (patch) | |
| tree | 9470e3220e706367c8a7f774fcdf706c7f00350c /src/portable | |
| parent | 5af989384bd95dbf16f824bcc48e56f3ea283080 (diff) | |
more wMaxPacketSize
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/dialog/da146xx/dcd_da146xx.c | 4 | ||||
| -rw-r--r-- | src/portable/microchip/samx7x/dcd_samx7x.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/dialog/da146xx/dcd_da146xx.c b/src/portable/dialog/da146xx/dcd_da146xx.c index 51957829f..311119747 100644 --- a/src/portable/dialog/da146xx/dcd_da146xx.c +++ b/src/portable/dialog/da146xx/dcd_da146xx.c @@ -256,7 +256,7 @@ static const tusb_desc_endpoint_t ep0OUT_desc = .bEndpointAddress = 0x00, .bmAttributes = { .xfer = TUSB_XFER_CONTROL }, - .wMaxPacketSize = { .size = CFG_TUD_ENDPOINT0_SIZE }, + .wMaxPacketSize = CFG_TUD_ENDPOINT0_SIZE, .bInterval = 0 }; @@ -267,7 +267,7 @@ static const tusb_desc_endpoint_t ep0IN_desc = .bEndpointAddress = 0x80, .bmAttributes = { .xfer = TUSB_XFER_CONTROL }, - .wMaxPacketSize = { .size = CFG_TUD_ENDPOINT0_SIZE }, + .wMaxPacketSize = CFG_TUD_ENDPOINT0_SIZE, .bInterval = 0 }; diff --git a/src/portable/microchip/samx7x/dcd_samx7x.c b/src/portable/microchip/samx7x/dcd_samx7x.c index d716e8fed..9e3b43840 100644 --- a/src/portable/microchip/samx7x/dcd_samx7x.c +++ b/src/portable/microchip/samx7x/dcd_samx7x.c @@ -84,7 +84,7 @@ static xfer_ctl_t xfer_status[EP_MAX]; static const tusb_desc_endpoint_t ep0_desc = { .bEndpointAddress = 0x00, - .wMaxPacketSize = { .size = CFG_TUD_ENDPOINT0_SIZE }, + .wMaxPacketSize = CFG_TUD_ENDPOINT0_SIZE, }; TU_ATTR_ALWAYS_INLINE static inline void CleanInValidateCache(uint32_t *addr, int32_t size) |
