Skip to content

Commit 4817553

Browse files
authored
Do not limit ETHERNET in periman to only ESP32. SPI is also an option
1 parent c5a355e commit 4817553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-periman.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef enum {
5858
#if SOC_USB_SERIAL_JTAG_SUPPORTED || SOC_USB_OTG_SUPPORTED
5959
ESP32_BUS_TYPE_USB, // IO is used as USB pin
6060
#endif
61-
#if CONFIG_IDF_TARGET_ESP32
61+
#if SOC_GPSPI_SUPPORTED
6262
ESP32_BUS_TYPE_ETHERNET, // IO is used as ETHERNET-RMII pin
6363
#endif
6464
ESP32_BUS_TYPE_MAX

0 commit comments

Comments
 (0)