diff options
| author | hathach <[email protected]> | 2020-04-08 15:29:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-08 15:33:07 +0700 |
| commit | 7b7a78ab2e89a8f147bbe7210923a72560b601d8 (patch) | |
| tree | dd5d0a34e2cc8e76cd03aef547cd0fb7bd6a8440 /src | |
| parent | 70df1aff132c691ae7d6ded98ffd20861ba9468d (diff) | |
disable SOF interrupt since it is not used for now
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/espressif/esp32s2/dcd_esp32s2.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/portable/espressif/esp32s2/dcd_esp32s2.c b/src/portable/espressif/esp32s2/dcd_esp32s2.c index 3361bde36..4cd682e12 100644 --- a/src/portable/espressif/esp32s2/dcd_esp32s2.c +++ b/src/portable/espressif/esp32s2/dcd_esp32s2.c @@ -42,6 +42,10 @@ #include "device/dcd.h" +// Since TinyUSB doesn't use SOF for now, and this interrupt too often (1ms interval) +// We disable SOF for now until needed later on +#define USE_SOF 0 + // FIFO size in bytes TODO need confirmation from Espressif #define EP_MAX USB_OUT_EP_NUM #define EP_FIFO_SIZE 1280 @@ -112,7 +116,7 @@ static void bus_reset(void) USB0.grxfsiz = 52; USB0.gintmsk = USB_MODEMISMSK_M | - USB_SOFMSK_M | + /* USB_SOFMSK_M | */ USB_RXFLVIMSK_M | USB_ERLYSUSPMSK_M | USB_USBSUSPMSK_M | @@ -154,7 +158,7 @@ static void enum_done_processing(void) xfer_status[0][TUSB_DIR_IN].max_size = 8; } - USB0.gintmsk |= USB_SOFMSK_M; // SOF unmask +// USB0.gintmsk |= USB_SOFMSK_M; // SOF unmask } @@ -202,7 +206,7 @@ void dcd_init(uint8_t rhport) USB0.gotgint = ~0U; //clear OTG ints USB0.gintsts = ~0U; //clear pending ints USB0.gintmsk = USB_MODEMISMSK_M | - USB_SOFMSK_M | + /*USB_SOFMSK_M |*/ USB_RXFLVIMSK_M | USB_ERLYSUSPMSK_M | USB_USBSUSPMSK_M | |
