esp32/boards/GENERIC_C3: Add generic C3-based board.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2021-07-18 12:11:23 +10:00
parent 6823514845
commit c77225ae5b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
set(IDF_TARGET esp32c3)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
)
if(NOT MICROPY_FROZEN_MANIFEST)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py)
endif()

View File

@ -0,0 +1,8 @@
// This configuration is for a generic ESP32C3 board with 4MiB (or more) of flash.
#define MICROPY_HW_BOARD_NAME "ESP32C3 module"
#define MICROPY_HW_MCU_NAME "ESP32C3"
#define MICROPY_HW_ENABLE_SDCARD (0)
#define MICROPY_PY_MACHINE_DAC (0)
#define MICROPY_PY_MACHINE_I2S (0)