Unverified Commit 5148374c authored by Elias Santistevan's avatar Elias Santistevan Committed by GitHub

Adds SparkFun Pro Micro C3 Variant File (#9158)

* Adds SparkFun Pro Micro ESP32-C3 variant file

Adds SparkFun Pro Micro ESP32-C3 variant to boards.txt

* removes some pin definitions that are defined elsewhere

* removes the accidental camel case in variant folder name

* Attempts again to fix camel case in the variant file

---------
Co-authored-by: default avatarJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
parent 7966f4ae
......@@ -6375,6 +6375,155 @@ sparkfun_esp32c6_qwiic_pocket.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
# SparkFun Pro Micro ESP32C3
sparkfun_pro_micro_esp32c3.name=SparkFun Pro Micro - ESP32C3
sparkfun_pro_micro_esp32c3.vid.0=0x1B4F
sparkfun_pro_micro_esp32c3.pid.0=0x0035
sparkfun_pro_micro_esp32c3.bootloader.tool=esptool_py
sparkfun_pro_micro_esp32c3.bootloader.tool.default=esptool_py
sparkfun_pro_micro_esp32c3.upload.tool=esptool_py
sparkfun_pro_micro_esp32c3.upload.tool.default=esptool_py
sparkfun_pro_micro_esp32c3.upload.tool.network=esp_ota
sparkfun_pro_micro_esp32c3.upload.maximum_size=1310720
sparkfun_pro_micro_esp32c3.upload.maximum_data_size=327680
sparkfun_pro_micro_esp32c3.upload.flags=
sparkfun_pro_micro_esp32c3.upload.extra_flags=
sparkfun_pro_micro_esp32c3.upload.use_1200bps_touch=false
sparkfun_pro_micro_esp32c3.upload.wait_for_upload_port=false
sparkfun_pro_micro_esp32c3.serial.disableDTR=false
sparkfun_pro_micro_esp32c3.serial.disableRTS=false
sparkfun_pro_micro_esp32c3.build.tarch=riscv32
sparkfun_pro_micro_esp32c3.build.bootloader_addr=0x0
sparkfun_pro_micro_esp32c3.build.target=esp
sparkfun_pro_micro_esp32c3.build.mcu=esp32c3
sparkfun_pro_micro_esp32c3.build.core=esp32
sparkfun_pro_micro_esp32c3.build.variant=sparkfun_pro_micro_esp32c3
sparkfun_pro_micro_esp32c3.build.board=SPARKFUN_PRO_MICRO_ESP32C3
sparkfun_pro_micro_esp32c3.build.cdc_on_boot=1
sparkfun_pro_micro_esp32c3.build.f_cpu=160000000L
sparkfun_pro_micro_esp32c3.build.flash_size=4MB
sparkfun_pro_micro_esp32c3.build.flash_freq=80m
sparkfun_pro_micro_esp32c3.build.flash_mode=dio
sparkfun_pro_micro_esp32c3.build.boot=qio
sparkfun_pro_micro_esp32c3.build.partitions=default
sparkfun_pro_micro_esp32c3.build.defines=
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.default=Disabled
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.default.build.copy_jtag_files=0
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.builtin=Integrated USB JTAG
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.builtin.build.openocdscript=esp32c3-builtin.cfg
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.external=FTDI Adapter
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.external.build.openocdscript=esp32c3-ftdi.cfg
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.external.build.copy_jtag_files=1
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.bridge=ESP USB Bridge
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.bridge.build.openocdscript=esp32c3-bridge.cfg
sparkfun_pro_micro_esp32c3.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
sparkfun_pro_micro_esp32c3.menu.CDCOnBoot.cdc=Enabled
sparkfun_pro_micro_esp32c3.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
sparkfun_pro_micro_esp32c3.menu.CDCOnBoot.default=Enabled
sparkfun_pro_micro_esp32c3.menu.CDCOnBoot.default.build.cdc_on_boot=0
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.default.build.partitions=default
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.minimal.build.partitions=minimal
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.no_ota.build.partitions=no_ota
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.huge_app.build.partitions=huge_app
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
sparkfun_pro_micro_esp32c3.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
sparkfun_pro_micro_esp32c3.menu.CPUFreq.160=160MHz (WiFi)
sparkfun_pro_micro_esp32c3.menu.CPUFreq.160.build.f_cpu=160000000L
sparkfun_pro_micro_esp32c3.menu.CPUFreq.80=80MHz (WiFi)
sparkfun_pro_micro_esp32c3.menu.CPUFreq.80.build.f_cpu=80000000L
sparkfun_pro_micro_esp32c3.menu.CPUFreq.40=40MHz
sparkfun_pro_micro_esp32c3.menu.CPUFreq.40.build.f_cpu=40000000L
sparkfun_pro_micro_esp32c3.menu.CPUFreq.20=20MHz
sparkfun_pro_micro_esp32c3.menu.CPUFreq.20.build.f_cpu=20000000L
sparkfun_pro_micro_esp32c3.menu.CPUFreq.10=10MHz
sparkfun_pro_micro_esp32c3.menu.CPUFreq.10.build.f_cpu=10000000L
sparkfun_pro_micro_esp32c3.menu.FlashMode.qio=QIO
sparkfun_pro_micro_esp32c3.menu.FlashMode.qio.build.flash_mode=dio
sparkfun_pro_micro_esp32c3.menu.FlashMode.qio.build.boot=qio
sparkfun_pro_micro_esp32c3.menu.FlashMode.dio=DIO
sparkfun_pro_micro_esp32c3.menu.FlashMode.dio.build.flash_mode=dio
sparkfun_pro_micro_esp32c3.menu.FlashMode.dio.build.boot=dio
sparkfun_pro_micro_esp32c3.menu.FlashMode.qout=QOUT
sparkfun_pro_micro_esp32c3.menu.FlashMode.qout.build.flash_mode=dout
sparkfun_pro_micro_esp32c3.menu.FlashMode.qout.build.boot=qout
sparkfun_pro_micro_esp32c3.menu.FlashMode.dout=DOUT
sparkfun_pro_micro_esp32c3.menu.FlashMode.dout.build.flash_mode=dout
sparkfun_pro_micro_esp32c3.menu.FlashMode.dout.build.boot=dout
sparkfun_pro_micro_esp32c3.menu.FlashFreq.80=80MHz
sparkfun_pro_micro_esp32c3.menu.FlashFreq.80.build.flash_freq=80m
sparkfun_pro_micro_esp32c3.menu.FlashFreq.40=40MHz
sparkfun_pro_micro_esp32c3.menu.FlashFreq.40.build.flash_freq=40m
sparkfun_pro_micro_esp32c3.menu.FlashSize.4M=4MB (32Mb)
sparkfun_pro_micro_esp32c3.menu.FlashSize.4M.build.flash_size=4MB
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.921600=921600
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.921600.upload.speed=921600
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.115200=115200
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.115200.upload.speed=115200
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.256000.windows=256000
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.256000.upload.speed=256000
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.230400.windows.upload.speed=256000
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.230400=230400
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.230400.upload.speed=230400
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.460800.linux=460800
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.460800.macosx=460800
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.460800.upload.speed=460800
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.512000.windows=512000
sparkfun_pro_micro_esp32c3.menu.UploadSpeed.512000.upload.speed=512000
sparkfun_pro_micro_esp32c3.menu.DebugLevel.none=None
sparkfun_pro_micro_esp32c3.menu.DebugLevel.none.build.code_debug=0
sparkfun_pro_micro_esp32c3.menu.DebugLevel.error=Error
sparkfun_pro_micro_esp32c3.menu.DebugLevel.error.build.code_debug=1
sparkfun_pro_micro_esp32c3.menu.DebugLevel.warn=Warn
sparkfun_pro_micro_esp32c3.menu.DebugLevel.warn.build.code_debug=2
sparkfun_pro_micro_esp32c3.menu.DebugLevel.info=Info
sparkfun_pro_micro_esp32c3.menu.DebugLevel.info.build.code_debug=3
sparkfun_pro_micro_esp32c3.menu.DebugLevel.debug=Debug
sparkfun_pro_micro_esp32c3.menu.DebugLevel.debug.build.code_debug=4
sparkfun_pro_micro_esp32c3.menu.DebugLevel.verbose=Verbose
sparkfun_pro_micro_esp32c3.menu.DebugLevel.verbose.build.code_debug=5
sparkfun_pro_micro_esp32c3.menu.EraseFlash.none=Disabled
sparkfun_pro_micro_esp32c3.menu.EraseFlash.none.upload.erase_cmd=
sparkfun_pro_micro_esp32c3.menu.EraseFlash.all=Enabled
sparkfun_pro_micro_esp32c3.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
nina_w10.name=u-blox NINA-W10 series (ESP32)
nina_w10.bootloader.tool=esptool_py
......@@ -32898,4 +33047,4 @@ makergo_c3_supermini.menu.EraseFlash.none.upload.erase_cmd=
makergo_c3_supermini.menu.EraseFlash.all=Enabled
makergo_c3_supermini.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
\ No newline at end of file
##############################################################
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define USB_VID 0x1B4F
#define USB_PID 0x0035
#define USB_MANUFACTURER "SparkFun"
#define USB_PRODUCT "SparkFun_Pro_Micro-ESP32C3"
#define USB_SERIAL "" // Empty string for MAC adddress
static const uint8_t LED_BUILTIN = 10;
static const uint8_t TX = 21;
static const uint8_t RX = 20;
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 D0 = 0;
static const uint8_t D1 = 1;
static const uint8_t D2 = 2;
static const uint8_t D3 = 3;
static const uint8_t D4 = 4;
static const uint8_t D5 = 5;
static const uint8_t D6 = 6;
static const uint8_t D7 = 7;
static const uint8_t D8 = 8;
static const uint8_t D9 = 9;
static const uint8_t D10 = 10;
static const uint8_t SDA = 5;
static const uint8_t SCL = 6;
static const uint8_t SS = 10;
static const uint8_t MOSI = 3;
static const uint8_t MISO = 1;
static const uint8_t SCK = 0;
static const uint8_t PIN_I2S_SCK = 6; // Frame clock, no bit clock
static const uint8_t PIN_I2S_SD_DOUT = 7; // data out
static const uint8_t PIN_I2S_SD_IN = 5; // data in
static const uint8_t PIN_I2S_FS = 10; // frame select
#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