diff options
| author | Ha Thach <[email protected]> | 2020-06-26 14:40:57 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-26 14:40:57 +0700 |
| commit | 562c079cf4388b8a4501ef704208692d8a1da4ba (patch) | |
| tree | 5fe5ae395f6fbf9f4a1703c7d656c34308aeb80b /src | |
| parent | d489581debc9a9e63e242f4ab1528592c86c0b1b (diff) | |
| parent | b2ef8cdd42552e2ac82fa9df3fd03b8442a7225d (diff) | |
Merge pull request #444 from jepler/same5x_bugfix
dcd_samd: Provide implementation for OPT_MCU_SAME5X
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c index 06959b98d..45bff2511 100644 --- a/src/portable/microchip/samd/dcd_samd.c +++ b/src/portable/microchip/samd/dcd_samd.c @@ -91,7 +91,7 @@ void dcd_init (uint8_t rhport) USB->DEVICE.INTENSET.reg = /* USB_DEVICE_INTENSET_SOF | */ USB_DEVICE_INTENSET_EORST; } -#if CFG_TUSB_MCU == OPT_MCU_SAMD51 +#if CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAME5X void dcd_int_enable(uint8_t rhport) { @@ -124,6 +124,11 @@ void dcd_int_disable(uint8_t rhport) (void) rhport; NVIC_DisableIRQ(USB_IRQn); } + +#else + +#error "No implementation available for dcd_int_enable / dcd_int_disable" + #endif void dcd_set_address (uint8_t rhport, uint8_t dev_addr) |
