Browse Source

esp32/boards: Add board definition for ESP32-S2-WROVER module.

pull/7821/head
patrick 3 years ago
committed by Damien George
parent
commit
4cfd85eb4a
  1. 12
      ports/esp32/boards/ESP32_S2_WROVER/mpconfigboard.cmake
  2. 15
      ports/esp32/boards/ESP32_S2_WROVER/mpconfigboard.h
  3. 11
      ports/esp32/boards/ESP32_S2_WROVER/sdkconfig.board

12
ports/esp32/boards/ESP32_S2_WROVER/mpconfigboard.cmake

@ -0,0 +1,12 @@
set(IDF_TARGET esp32s2)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.spiram_sx
boards/sdkconfig.usb
boards/ESP32_S2_WROVER/sdkconfig.board
)
if(NOT MICROPY_FROZEN_MANIFEST)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py)
endif()

15
ports/esp32/boards/ESP32_S2_WROVER/mpconfigboard.h

@ -0,0 +1,15 @@
#define MICROPY_HW_BOARD_NAME "ESP32-S2-WROVER"
#define MICROPY_HW_MCU_NAME "ESP32-S2"
#define MICROPY_PY_BLUETOOTH (0)
#define MICROPY_HW_ENABLE_SDCARD (0)
#define MICROPY_HW_I2C0_SCL (7)
#define MICROPY_HW_I2C0_SDA (6)
#define MICROPY_HW_SPI1_MOSI (35)
#define MICROPY_HW_SPI1_MISO (37)
#define MICROPY_HW_SPI1_SCK (36)
#define MICROPY_HW_SPI2_MOSI (11)
#define MICROPY_HW_SPI2_MISO (13)
#define MICROPY_HW_SPI2_SCK (12)

11
ports/esp32/boards/ESP32_S2_WROVER/sdkconfig.board

@ -0,0 +1,11 @@
CONFIG_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
CONFIG_ESPTOOLPY_AFTER_NORESET=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_USB_AND_UART=y
# LWIP
CONFIG_LWIP_LOCAL_HOSTNAME="ESP32-S2-WROVER"
# end of LWIP
Loading…
Cancel
Save