[env:thinknode_g3]
extends = esp32s3_base
board = ESP32-S3-WROOM-1-N4
board_build.psram_type = opi

build_flags =
  ${esp32s3_base.build_flags}
  -D HAS_UDP_MULTICAST=1
  -D BOARD_HAS_PSRAM
  -D PRIVATE_HW
  -I variants/esp32s3/ELECROW-ThinkNode-G3
  -mfix-esp32-psram-cache-issue

custom_sdkconfig =
  ${esp32s3_base.custom_sdkconfig}
  CONFIG_ETH_ENABLED=y
  CONFIG_ARDUINO_SELECTIVE_Ethernet=y

; Do NOT lib_ignore Ethernet here: pioarduino's component manager maps the
; ignored Arduino lib to the esp_eth IDF component and strips its include
; paths, breaking NetworkEvents.h and the CH390 driver (see t-eth-elite).

build_src_filter =
  ${esp32s3_base.build_src_filter}
  +<../variants/esp32s3/ELECROW-ThinkNode-G3/*>

lib_deps =
  ${esp32s3_base.lib_deps}
  # renovate: datasource=github-tags depName=ESP32-CH390 packageName=meshtastic/ESP32-CH390
  https://github.com/meshtastic/ESP32-CH390/archive/refs/tags/v1.1.0.zip
