diff options
| author | hathach <[email protected]> | 2020-11-27 15:54:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-11-27 15:54:55 +0700 |
| commit | 94527951a0fef9c1383ff9a3bbc8167f21008f4e (patch) | |
| tree | 4aa0a3e9477bef225d87c9c12c66913dddcb604f /src/portable/st | |
| parent | 4a2baf400ea1ecf220b18352ec45dbe455741317 (diff) | |
add bus suspend & resume support for esp32s2
Diffstat (limited to 'src/portable/st')
| -rw-r--r-- | src/portable/st/synopsys/dcd_synopsys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c index 9aeec79e6..c18dcde51 100644 --- a/src/portable/st/synopsys/dcd_synopsys.c +++ b/src/portable/st/synopsys/dcd_synopsys.c @@ -507,21 +507,21 @@ void dcd_set_address (uint8_t rhport, uint8_t dev_addr) void dcd_remote_wakeup(uint8_t rhport) { (void) rhport; + + // TODO must manually clear this bit after 1-15 ms + // USB_OTG_DeviceTypeDef * dev = DEVICE_BASE(rhport); + // dev->DCTL |= USB_OTG_DCTL_RWUSIG; } void dcd_connect(uint8_t rhport) { - (void) rhport; USB_OTG_DeviceTypeDef * dev = DEVICE_BASE(rhport); - dev->DCTL &= ~USB_OTG_DCTL_SDIS; } void dcd_disconnect(uint8_t rhport) { - (void) rhport; USB_OTG_DeviceTypeDef * dev = DEVICE_BASE(rhport); - dev->DCTL |= USB_OTG_DCTL_SDIS; } |
