summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-04-13 11:13:08 +1000
committerDamien George <damien@micropython.org>2021-04-15 10:31:06 +1000
commitd97b8daf1a8d3bcb7f205bbffd4f2e122f973f9d (patch)
tree029155aeb2437b52fe15baf7d5df867548fc9f1b
parentc81d048bb3ad35d62c3c7afe9b770a32f8b49c8b (diff)
esp32/boards: Add GENERIC_S2 board definition.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake8
-rw-r--r--ports/esp32/boards/GENERIC_S2/mpconfigboard.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_S2/mpconfigboard.cmake
new file mode 100644
index 000000000..23d52e8b9
--- /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 000000000..01ac2ce58
--- /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)