Unverified Commit 972c3bbd authored by Will Anderson's avatar Will Anderson Committed by GitHub

Add ESP-C3-M1-I-Kit board (#6938)

* feat: add ESP-C3-M1-I-Kit board to variants

* docs: rename file to slug format

* Fixes GPIO definitions

* Adds ESP32 C3 M1 I Kit to the board list

Fixes board.txt file to add the new ESP32_C3_M1_I_KIT variant

* fixes extra board separator

* Keeps only 4MB flash option

* Fix it to Flash 80Mhz QIO only

* Undo a change by mistake
Co-authored-by: default avatarRodrigo Garcia <rodrigo.garcia@espressif.com>
parent ffdfd7e3
......@@ -19665,3 +19665,118 @@ redpill_esp32s3.menu.EraseFlash.all=Enabled
redpill_esp32s3.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
esp32c3m1IKit.name=ESP-C3-M1-I-Kit
esp32c3m1IKit.bootloader.tool=esptool_py
esp32c3m1IKit.bootloader.tool.default=esptool_py
esp32c3m1IKit.upload.tool=esptool_py
esp32c3m1IKit.upload.tool.default=esptool_py
esp32c3m1IKit.upload.tool.network=esp_ota
esp32c3m1IKit.upload.maximum_size=1310720
esp32c3m1IKit.upload.maximum_data_size=327680
esp32c3m1IKit.upload.flags=
esp32c3m1IKit.upload.extra_flags=
esp32c3m1IKit.upload.use_1200bps_touch=false
esp32c3m1IKit.upload.wait_for_upload_port=false
esp32c3m1IKit.serial.disableDTR=false
esp32c3m1IKit.serial.disableRTS=false
esp32c3m1IKit.build.tarch=riscv32
esp32c3m1IKit.build.target=esp
esp32c3m1IKit.build.mcu=esp32c3
esp32c3m1IKit.build.core=esp32
esp32c3m1IKit.build.variant=esp_c3_m1_i_kit
esp32c3m1IKit.build.board=ESP32C3_M1_I_KIT
esp32c3m1IKit.build.bootloader_addr=0x0
esp32c3m1IKit.build.cdc_on_boot=0
esp32c3m1IKit.build.f_cpu=160000000L
esp32c3m1IKit.build.flash_size=4MB
esp32c3m1IKit.build.flash_freq=80m
esp32c3m1IKit.build.flash_mode=qio
esp32c3m1IKit.build.boot=qio
esp32c3m1IKit.build.partitions=default
esp32c3m1IKit.build.defines=
esp32c3m1IKit.menu.CDCOnBoot.default=Disabled
esp32c3m1IKit.menu.CDCOnBoot.default.build.cdc_on_boot=0
esp32c3m1IKit.menu.CDCOnBoot.cdc=Enabled
esp32c3m1IKit.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
esp32c3m1IKit.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.default.build.partitions=default
esp32c3m1IKit.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
esp32c3m1IKit.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
esp32c3m1IKit.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.minimal.build.partitions=minimal
esp32c3m1IKit.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.no_ota.build.partitions=no_ota
esp32c3m1IKit.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
esp32c3m1IKit.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
esp32c3m1IKit.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
esp32c3m1IKit.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
esp32c3m1IKit.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
esp32c3m1IKit.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
esp32c3m1IKit.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
esp32c3m1IKit.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
esp32c3m1IKit.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
esp32c3m1IKit.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.huge_app.build.partitions=huge_app
esp32c3m1IKit.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
esp32c3m1IKit.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
esp32c3m1IKit.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
esp32c3m1IKit.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
esp32c3m1IKit.menu.PartitionScheme.rainmaker=RainMaker
esp32c3m1IKit.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
esp32c3m1IKit.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
esp32c3m1IKit.menu.CPUFreq.160=160MHz (WiFi)
esp32c3m1IKit.menu.CPUFreq.160.build.f_cpu=160000000L
esp32c3m1IKit.menu.CPUFreq.80=80MHz (WiFi)
esp32c3m1IKit.menu.CPUFreq.80.build.f_cpu=80000000L
esp32c3m1IKit.menu.CPUFreq.40=40MHz
esp32c3m1IKit.menu.CPUFreq.40.build.f_cpu=40000000L
esp32c3m1IKit.menu.CPUFreq.20=20MHz
esp32c3m1IKit.menu.CPUFreq.20.build.f_cpu=20000000L
esp32c3m1IKit.menu.CPUFreq.10=10MHz
esp32c3m1IKit.menu.CPUFreq.10.build.f_cpu=10000000L
esp32c3m1IKit.menu.UploadSpeed.921600=921600
esp32c3m1IKit.menu.UploadSpeed.921600.upload.speed=921600
esp32c3m1IKit.menu.UploadSpeed.115200=115200
esp32c3m1IKit.menu.UploadSpeed.115200.upload.speed=115200
esp32c3m1IKit.menu.UploadSpeed.256000.windows=256000
esp32c3m1IKit.menu.UploadSpeed.256000.upload.speed=256000
esp32c3m1IKit.menu.UploadSpeed.230400.windows.upload.speed=256000
esp32c3m1IKit.menu.UploadSpeed.230400=230400
esp32c3m1IKit.menu.UploadSpeed.230400.upload.speed=230400
esp32c3m1IKit.menu.UploadSpeed.460800.linux=460800
esp32c3m1IKit.menu.UploadSpeed.460800.macosx=460800
esp32c3m1IKit.menu.UploadSpeed.460800.upload.speed=460800
esp32c3m1IKit.menu.UploadSpeed.512000.windows=512000
esp32c3m1IKit.menu.UploadSpeed.512000.upload.speed=512000
esp32c3m1IKit.menu.DebugLevel.none=None
esp32c3m1IKit.menu.DebugLevel.none.build.code_debug=0
esp32c3m1IKit.menu.DebugLevel.error=Error
esp32c3m1IKit.menu.DebugLevel.error.build.code_debug=1
esp32c3m1IKit.menu.DebugLevel.warn=Warn
esp32c3m1IKit.menu.DebugLevel.warn.build.code_debug=2
esp32c3m1IKit.menu.DebugLevel.info=Info
esp32c3m1IKit.menu.DebugLevel.info.build.code_debug=3
esp32c3m1IKit.menu.DebugLevel.debug=Debug
esp32c3m1IKit.menu.DebugLevel.debug.build.code_debug=4
esp32c3m1IKit.menu.DebugLevel.verbose=Verbose
esp32c3m1IKit.menu.DebugLevel.verbose.build.code_debug=5
esp32c3m1IKit.menu.EraseFlash.none=Disabled
esp32c3m1IKit.menu.EraseFlash.none.upload.erase_cmd=
esp32c3m1IKit.menu.EraseFlash.all=Enabled
esp32c3m1IKit.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
/*
For more information about this board:
https://docs.ai-thinker.com/_media/esp32/docs/nodemcu-esp-c3-m1-i-kit_v1.2.0_specification.pdf
*/
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define EXTERNAL_NUM_INTERRUPTS 22
#define NUM_DIGITAL_PINS 22
#define NUM_ANALOG_INPUTS 6
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
// User LEDs are also connected to USB D- and D+
static const uint8_t LED_WARM = 18;
static const uint8_t LED_COLD = 19;
// RGB LED
static const uint8_t LED_RED = 3;
static const uint8_t LED_GREEN = 4;
static const uint8_t LED_BLUE = 5;
static const uint8_t LED_BUILTIN = LED_WARM;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
// Standard ESP32-C3 GPIOs
static const uint8_t TX = 21;
static const uint8_t RX = 20;
static const uint8_t SDA = 8;
static const uint8_t SCL = 9;
static const uint8_t SS = 7;
static const uint8_t MOSI = 6;
static const uint8_t MISO = 5;
static const uint8_t SCK = 4;
static const uint8_t A0 = 0;
static const uint8_t A1 = 1;
static const uint8_t A2 = 2;
static const uint8_t A3 = 3;
static const uint8_t A4 = 4;
static const uint8_t A5 = 5;
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment