From d97b8daf1a8d3bcb7f205bbffd4f2e122f973f9d Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 13 Apr 2021 11:13:08 +1000 Subject: [PATCH] esp32/boards: Add GENERIC_S2 board definition. Signed-off-by: Damien George --- ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake | 8 ++++++++ ports/esp32/boards/GENERIC_S2/mpconfigboard.h | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake create mode 100644 ports/esp32/boards/GENERIC_S2/mpconfigboard.h diff --git a/ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake new file mode 100644 index 0000000000..23d52e8b94 --- /dev/null +++ b/ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake @@ -0,0 +1,8 @@ +set(IDF_TARGET esp32s2) + +set(SDKCONFIG_DEFAULTS + boards/sdkconfig.base + boards/sdkconfig.usb +) + +set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py) diff --git a/ports/esp32/boards/GENERIC_S2/mpconfigboard.h b/ports/esp32/boards/GENERIC_S2/mpconfigboard.h new file mode 100644 index 0000000000..01ac2ce58e --- /dev/null +++ b/ports/esp32/boards/GENERIC_S2/mpconfigboard.h @@ -0,0 +1,5 @@ +#define MICROPY_HW_BOARD_NAME "ESP32S2 module" +#define MICROPY_HW_MCU_NAME "ESP32S2" + +#define MICROPY_PY_BLUETOOTH (0) +#define MICROPY_HW_ENABLE_SDCARD (0)