mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
esp32/boards: Add ESP32_GENERIC_C5 board definition.
Signed-off-by: yuan_mo <2286087148@qq.com>
This commit is contained in:
22
ports/esp32/boards/ESP32_GENERIC_C5/board.json
Normal file
22
ports/esp32/boards/ESP32_GENERIC_C5/board.json
Normal file
@@ -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"
|
||||
}
|
||||
2
ports/esp32/boards/ESP32_GENERIC_C5/board.md
Normal file
2
ports/esp32/boards/ESP32_GENERIC_C5/board.md
Normal file
@@ -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.
|
||||
10
ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake
Normal file
10
ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake
Normal file
@@ -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
|
||||
)
|
||||
7
ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h
Normal file
7
ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h
Normal file
@@ -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)
|
||||
2
ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board
Normal file
2
ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board
Normal file
@@ -0,0 +1,2 @@
|
||||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
||||
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
|
||||
Reference in New Issue
Block a user