summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-04 14:45:26 +0700
committerhathach <[email protected]>2022-03-04 14:45:26 +0700
commitf72da8ee7d7082f9c2f1d796cfb03dcdd1c6d673 (patch)
treeb3d5d80c539793112c3230b1675b260d5534e809
parentc9b0fbc907495b393d0d76281ce6ed4ecf46c27c (diff)
fix build with esp32s2, also use dwc2 for esp example
-rw-r--r--examples/device/hid_composite_freertos/src/CMakeLists.txt2
-rw-r--r--src/portable/espressif/esp32sx/dcd_esp32sx.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/device/hid_composite_freertos/src/CMakeLists.txt b/examples/device/hid_composite_freertos/src/CMakeLists.txt
index 5d9fc74d3..25da8fcd7 100644
--- a/examples/device/hid_composite_freertos/src/CMakeLists.txt
+++ b/examples/device/hid_composite_freertos/src/CMakeLists.txt
@@ -31,5 +31,5 @@ target_sources(${COMPONENT_TARGET} PUBLIC
"${TOP}/src/class/net/ncm_device.c"
"${TOP}/src/class/usbtmc/usbtmc_device.c"
"${TOP}/src/class/vendor/vendor_device.c"
- "${TOP}/src/portable/espressif/esp32sx/dcd_esp32sx.c"
+ "${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c"
)
diff --git a/src/portable/espressif/esp32sx/dcd_esp32sx.c b/src/portable/espressif/esp32sx/dcd_esp32sx.c
index 99cd08e4d..bd8805dd3 100644
--- a/src/portable/espressif/esp32sx/dcd_esp32sx.c
+++ b/src/portable/espressif/esp32sx/dcd_esp32sx.c
@@ -34,7 +34,6 @@
#include "freertos/xtensa_api.h"
#include "esp_intr_alloc.h"
#include "esp_log.h"
-#include "driver/gpio.h"
#include "soc/dport_reg.h"
#include "soc/gpio_sig_map.h"
#include "soc/usb_periph.h"