summaryrefslogtreecommitdiff
path: root/ports/esp32/boards
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/boards')
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C5/board.json22
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C5/board.md2
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake10
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h7
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board2
-rw-r--r--ports/esp32/boards/sdkconfig.base1
6 files changed, 43 insertions, 1 deletions
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/board.json b/ports/esp32/boards/ESP32_GENERIC_C5/board.json
new file mode 100644
index 000000000..371da3929
--- /dev/null
+++ b/ports/esp32/boards/ESP32_GENERIC_C5/board.json
@@ -0,0 +1,22 @@
+{
+ "deploy": [
+ "../deploy.md"
+ ],
+ "deploy_options": {
+ "flash_offset": "0x2000"
+ },
+ "docs": "",
+ "features": [
+ "BLE",
+ "External Flash",
+ "WiFi"
+ ],
+ "images": [
+ "esp32c5_devkitmini.jpg"
+ ],
+ "mcu": "esp32c5",
+ "product": "ESP32-C5",
+ "thumbnail": "",
+ "url": "https://www.espressif.com/en/products/modules",
+ "vendor": "Espressif"
+}
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/board.md b/ports/esp32/boards/ESP32_GENERIC_C5/board.md
new file mode 100644
index 000000000..82bac44b9
--- /dev/null
+++ b/ports/esp32/boards/ESP32_GENERIC_C5/board.md
@@ -0,0 +1,2 @@
+The following files are firmware images that should work on most ESP32-C5-based
+boards with at least 4MiB of flash and 40MHz/48MHz crystal frequency.
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake
new file mode 100644
index 000000000..79aba7d47
--- /dev/null
+++ b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake
@@ -0,0 +1,10 @@
+set(IDF_TARGET esp32c5)
+
+set(SDKCONFIG_DEFAULTS
+ boards/sdkconfig.base
+ boards/sdkconfig.riscv
+ boards/sdkconfig.ble
+ boards/sdkconfig.240mhz
+ boards/sdkconfig.free_ram
+ boards/ESP32_GENERIC_C5/sdkconfig.board
+)
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h
new file mode 100644
index 000000000..552468497
--- /dev/null
+++ b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h
@@ -0,0 +1,7 @@
+// This configuration is for a generic ESP32C5 board with 4MiB (or more) of flash.
+
+#define MICROPY_HW_BOARD_NAME "ESP32C5 module"
+#define MICROPY_HW_MCU_NAME "ESP32C5"
+
+#define MICROPY_PY_MACHINE_I2S (0)
+#define MICROPY_HW_ENABLE_UART_REPL (1)
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board b/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board
new file mode 100644
index 000000000..369330682
--- /dev/null
+++ b/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board
@@ -0,0 +1,2 @@
+CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
+CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
diff --git a/ports/esp32/boards/sdkconfig.base b/ports/esp32/boards/sdkconfig.base
index e1b30b8e5..6c8368ac4 100644
--- a/ports/esp32/boards/sdkconfig.base
+++ b/ports/esp32/boards/sdkconfig.base
@@ -124,7 +124,6 @@ CONFIG_UART_ISR_IN_IRAM=y
# IDF 5 deprecated
CONFIG_PCNT_SUPPRESS_DEPRECATE_WARN=y
-CONFIG_RMT_SUPPRESS_DEPRECATE_WARN=y
CONFIG_TOUCH_SUPPRESS_DEPRECATE_WARN=y
CONFIG_ETH_USE_SPI_ETHERNET=y