Skip to content

Commit 49a3c10

Browse files
microbotsioP-R-O-C-H-Ypre-commit-ci-lite[bot]
authored
Adding CodeCell ESP32C3 new 3rd part board (#10177)
* Add CodeCell ESP32C3 variant folder feat(variants): Add CodeCell ESP32C3 variant folder Added the `codecell` folder to the `arduino-esp32/variants` directory to support the CodeCell ESP32C3 board. This folder includes the necessary pin mappings and configuration files. * Update boards.txt for CodeCell ESP32C3 chore(board): Update boards.txt for CodeCell ESP32C3 Updated the boards.txt configuration to include settings specific to the CodeCell ESP32C3 board, such as upload speed and partition schemes. * Update variants/CodeCell/pins_arduino.h Co-authored-by: Jan Procházka <[email protected]> * Delete variants/CodeCell directory * Add codecell ESP32C3 variant folder feat(variants): Add codecell ESP32C3 variant folder Added the CodeCell ESP32C3 variant folder to support the CodeCell ESP32C3 board. This folder contains the necessary pin mappings and configuration files. * Update pins_arduino.h * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: Jan Procházka <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent b8c9b59 commit 49a3c10

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

Diff for: boards.txt

+58
Original file line numberDiff line numberDiff line change
@@ -40340,3 +40340,61 @@ alfredo-nou3.menu.EraseFlash.all=Enabled
4034040340
alfredo-nou3.menu.EraseFlash.all.upload.erase_cmd=-e
4034140341

4034240342
##############################################################
40343+
codecell.name=CodeCell
40344+
codecell.vid.0=0x303a
40345+
codecell.pid.0=0x1002
40346+
codecell.upload_port.0.vid=0x303a
40347+
codecell.upload_port.0.pid=0x1002
40348+
40349+
codecell.bootloader.tool=esptool_py
40350+
codecell.upload.tool=esptool_py
40351+
codecell.upload.maximum_size=4194304
40352+
codecell.upload.maximum_data_size=327680
40353+
codecell.upload.use_1200bps_touch=false
40354+
codecell.upload.wait_for_upload_port=false
40355+
40356+
codecell.upload.speed=921600
40357+
codecell.serial.disableDTR=false
40358+
codecell.serial.disableRTS=false
40359+
40360+
codecell.build.tarch=riscv32
40361+
codecell.build.target=esp
40362+
codecell.build.mcu=esp32c3
40363+
codecell.build.core=esp32
40364+
codecell.build.variant=codecell
40365+
codecell.build.board=ESP32C3_DEV
40366+
codecell.build.bootloader_addr=0x0
40367+
codecell.build.cdc_on_boot=1
40368+
codecell.build.f_cpu=160000000L
40369+
codecell.build.flash_size=4MB
40370+
codecell.build.flash_freq=80m
40371+
codecell.build.flash_mode=qio
40372+
codecell.build.boot=qio
40373+
codecell.build.partitions=default
40374+
40375+
codecell.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
40376+
codecell.menu.CPUFreq.160=160MHz
40377+
codecell.menu.FlashMode.qio=QIO
40378+
codecell.menu.FlashFreq.80=80MHz
40379+
codecell.menu.FlashSize.4M=4MB (32Mb)
40380+
codecell.menu.UploadSpeed.921600=921600
40381+
40382+
codecell.menu.DebugLevel.none=None
40383+
codecell.menu.DebugLevel.none.build.code_debug=0
40384+
codecell.menu.DebugLevel.error=Error
40385+
codecell.menu.DebugLevel.error.build.code_debug=1
40386+
codecell.menu.DebugLevel.warn=Warn
40387+
codecell.menu.DebugLevel.warn.build.code_debug=2
40388+
codecell.menu.DebugLevel.info=Info
40389+
codecell.menu.DebugLevel.info.build.code_debug=3
40390+
codecell.menu.DebugLevel.debug=Debug
40391+
codecell.menu.DebugLevel.debug.build.code_debug=4
40392+
codecell.menu.DebugLevel.verbose=Verbose
40393+
codecell.menu.DebugLevel.verbose.build.code_debug=5
40394+
40395+
codecell.menu.EraseFlash.none=Disabled
40396+
codecell.menu.EraseFlash.none.upload.erase_cmd=
40397+
codecell.menu.EraseFlash.all=Enabled
40398+
codecell.menu.EraseFlash.all.upload.erase_cmd=-e
40399+
40400+
##############################################################

Diff for: variants/codecell/pins_arduino.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
static const uint8_t TX = 21;
8+
static const uint8_t RX = 20;
9+
10+
static const uint8_t SDA = 8;
11+
static const uint8_t SCL = 9;
12+
13+
static const uint8_t SS = 7;
14+
static const uint8_t MOSI = 6;
15+
static const uint8_t MISO = 5;
16+
static const uint8_t SCK = 4;
17+
18+
static const uint8_t A0 = 0;
19+
static const uint8_t A1 = 1;
20+
static const uint8_t A2 = 2;
21+
static const uint8_t A3 = 3;
22+
static const uint8_t A4 = 4;
23+
static const uint8_t A5 = 5;
24+
25+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)