Skip to content

Commit 762d1a0

Browse files
ladyadahathach
andauthored
feat (3rd_party_board): Add new Adafruit Feather C6 - rev B (#9961)
* add new feather c6 rev B :) * remove the -lzboss_stack.ed.trace per review * fix pre-commit --------- Co-authored-by: hathach <[email protected]>
1 parent 5f663e7 commit 762d1a0

File tree

3 files changed

+254
-0
lines changed

3 files changed

+254
-0
lines changed

Diff for: boards.txt

+179
Original file line numberDiff line numberDiff line change
@@ -13483,6 +13483,185 @@ adafruit_feather_esp32s3_reversetft.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinato
1348313483
adafruit_feather_esp32s3_reversetft.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
1348413484
adafruit_feather_esp32s3_reversetft.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr -lzboss_port
1348513485

13486+
#############################
13487+
# Feather C6
13488+
13489+
13490+
adafruit_feather_esp32c6.name=Adafruit Feather ESP32-C6
13491+
adafruit_feather_esp32c6.vid.0=0x303a
13492+
adafruit_feather_esp32c6.pid.0=0x1001
13493+
13494+
adafruit_feather_esp32c6.bootloader.tool=esptool_py
13495+
adafruit_feather_esp32c6.bootloader.tool.default=esptool_py
13496+
13497+
adafruit_feather_esp32c6.upload.tool=esptool_py
13498+
adafruit_feather_esp32c6.upload.tool.default=esptool_py
13499+
adafruit_feather_esp32c6.upload.tool.network=esp_ota
13500+
13501+
adafruit_feather_esp32c6.upload.maximum_size=1310720
13502+
adafruit_feather_esp32c6.upload.maximum_data_size=327680
13503+
adafruit_feather_esp32c6.upload.flags=
13504+
adafruit_feather_esp32c6.upload.extra_flags=
13505+
adafruit_feather_esp32c6.upload.use_1200bps_touch=false
13506+
adafruit_feather_esp32c6.upload.wait_for_upload_port=false
13507+
13508+
adafruit_feather_esp32c6.serial.disableDTR=false
13509+
adafruit_feather_esp32c6.serial.disableRTS=false
13510+
13511+
adafruit_feather_esp32c6.build.tarch=riscv32
13512+
adafruit_feather_esp32c6.build.target=esp
13513+
adafruit_feather_esp32c6.build.mcu=esp32c6
13514+
adafruit_feather_esp32c6.build.core=esp32
13515+
adafruit_feather_esp32c6.build.variant=adafruit_feather_esp32c6
13516+
adafruit_feather_esp32c6.build.board=ADAFRUIT_FEATHER_ESP32C6
13517+
adafruit_feather_esp32c6.build.bootloader_addr=0x0
13518+
13519+
adafruit_feather_esp32c6.build.cdc_on_boot=0
13520+
adafruit_feather_esp32c6.build.f_cpu=160000000L
13521+
adafruit_feather_esp32c6.build.flash_size=4MB
13522+
adafruit_feather_esp32c6.build.flash_freq=80m
13523+
adafruit_feather_esp32c6.build.flash_mode=qio
13524+
adafruit_feather_esp32c6.build.boot=qio
13525+
adafruit_feather_esp32c6.build.partitions=default
13526+
adafruit_feather_esp32c6.build.defines=
13527+
13528+
## IDE 2.0 Seems to not update the value
13529+
adafruit_feather_esp32c6.menu.JTAGAdapter.default=Disabled
13530+
adafruit_feather_esp32c6.menu.JTAGAdapter.default.build.copy_jtag_files=0
13531+
adafruit_feather_esp32c6.menu.JTAGAdapter.builtin=Integrated USB JTAG
13532+
adafruit_feather_esp32c6.menu.JTAGAdapter.builtin.build.openocdscript=esp32c6-builtin.cfg
13533+
adafruit_feather_esp32c6.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
13534+
adafruit_feather_esp32c6.menu.JTAGAdapter.external=FTDI Adapter
13535+
adafruit_feather_esp32c6.menu.JTAGAdapter.external.build.openocdscript=esp32c6-ftdi.cfg
13536+
adafruit_feather_esp32c6.menu.JTAGAdapter.external.build.copy_jtag_files=1
13537+
adafruit_feather_esp32c6.menu.JTAGAdapter.bridge=ESP USB Bridge
13538+
adafruit_feather_esp32c6.menu.JTAGAdapter.bridge.build.openocdscript=esp32c6-bridge.cfg
13539+
adafruit_feather_esp32c6.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
13540+
13541+
adafruit_feather_esp32c6.menu.CDCOnBoot.default=Disabled
13542+
adafruit_feather_esp32c6.menu.CDCOnBoot.default.build.cdc_on_boot=0
13543+
adafruit_feather_esp32c6.menu.CDCOnBoot.cdc=Enabled
13544+
adafruit_feather_esp32c6.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
13545+
13546+
adafruit_feather_esp32c6.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
13547+
adafruit_feather_esp32c6.menu.PartitionScheme.default.build.partitions=default
13548+
adafruit_feather_esp32c6.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
13549+
adafruit_feather_esp32c6.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
13550+
adafruit_feather_esp32c6.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
13551+
adafruit_feather_esp32c6.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
13552+
adafruit_feather_esp32c6.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
13553+
adafruit_feather_esp32c6.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
13554+
adafruit_feather_esp32c6.menu.PartitionScheme.minimal.build.partitions=minimal
13555+
adafruit_feather_esp32c6.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
13556+
adafruit_feather_esp32c6.menu.PartitionScheme.no_ota.build.partitions=no_ota
13557+
adafruit_feather_esp32c6.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
13558+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
13559+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
13560+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
13561+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
13562+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
13563+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
13564+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
13565+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
13566+
adafruit_feather_esp32c6.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
13567+
adafruit_feather_esp32c6.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
13568+
adafruit_feather_esp32c6.menu.PartitionScheme.huge_app.build.partitions=huge_app
13569+
adafruit_feather_esp32c6.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
13570+
adafruit_feather_esp32c6.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
13571+
adafruit_feather_esp32c6.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
13572+
adafruit_feather_esp32c6.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
13573+
adafruit_feather_esp32c6.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
13574+
adafruit_feather_esp32c6.menu.PartitionScheme.fatflash.build.partitions=ffat
13575+
adafruit_feather_esp32c6.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
13576+
adafruit_feather_esp32c6.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
13577+
adafruit_feather_esp32c6.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
13578+
adafruit_feather_esp32c6.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
13579+
adafruit_feather_esp32c6.menu.PartitionScheme.rainmaker=RainMaker
13580+
adafruit_feather_esp32c6.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
13581+
adafruit_feather_esp32c6.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
13582+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee=Zigbee 4MB with spiffs
13583+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee.build.partitions=zigbee
13584+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee.upload.maximum_size=1310720
13585+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee_zczr=Zigbee ZCZR 4MB with spiffs
13586+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee_zczr.build.partitions=zigbee_zczr
13587+
adafruit_feather_esp32c6.menu.PartitionScheme.zigbee_zczr.upload.maximum_size=1310720
13588+
adafruit_feather_esp32c6.menu.PartitionScheme.custom=Custom
13589+
adafruit_feather_esp32c6.menu.PartitionScheme.custom.build.partitions=
13590+
adafruit_feather_esp32c6.menu.PartitionScheme.custom.upload.maximum_size=16777216
13591+
13592+
adafruit_feather_esp32c6.menu.CPUFreq.160=160MHz (WiFi)
13593+
adafruit_feather_esp32c6.menu.CPUFreq.160.build.f_cpu=160000000L
13594+
adafruit_feather_esp32c6.menu.CPUFreq.120=120MHz (WiFi)
13595+
adafruit_feather_esp32c6.menu.CPUFreq.120.build.f_cpu=120000000L
13596+
adafruit_feather_esp32c6.menu.CPUFreq.80=80MHz (WiFi)
13597+
adafruit_feather_esp32c6.menu.CPUFreq.80.build.f_cpu=80000000L
13598+
adafruit_feather_esp32c6.menu.CPUFreq.40=40MHz
13599+
adafruit_feather_esp32c6.menu.CPUFreq.40.build.f_cpu=40000000L
13600+
adafruit_feather_esp32c6.menu.CPUFreq.20=20MHz
13601+
adafruit_feather_esp32c6.menu.CPUFreq.20.build.f_cpu=20000000L
13602+
adafruit_feather_esp32c6.menu.CPUFreq.10=10MHz
13603+
adafruit_feather_esp32c6.menu.CPUFreq.10.build.f_cpu=10000000L
13604+
13605+
adafruit_feather_esp32c6.menu.FlashMode.qio=QIO
13606+
adafruit_feather_esp32c6.menu.FlashMode.qio.build.flash_mode=dio
13607+
adafruit_feather_esp32c6.menu.FlashMode.qio.build.boot=qio
13608+
adafruit_feather_esp32c6.menu.FlashMode.dio=DIO
13609+
adafruit_feather_esp32c6.menu.FlashMode.dio.build.flash_mode=dio
13610+
adafruit_feather_esp32c6.menu.FlashMode.dio.build.boot=dio
13611+
13612+
adafruit_feather_esp32c6.menu.FlashFreq.80=80MHz
13613+
adafruit_feather_esp32c6.menu.FlashFreq.80.build.flash_freq=80m
13614+
adafruit_feather_esp32c6.menu.FlashFreq.40=40MHz
13615+
adafruit_feather_esp32c6.menu.FlashFreq.40.build.flash_freq=40m
13616+
13617+
adafruit_feather_esp32c6.menu.UploadSpeed.921600=921600
13618+
adafruit_feather_esp32c6.menu.UploadSpeed.921600.upload.speed=921600
13619+
adafruit_feather_esp32c6.menu.UploadSpeed.115200=115200
13620+
adafruit_feather_esp32c6.menu.UploadSpeed.115200.upload.speed=115200
13621+
adafruit_feather_esp32c6.menu.UploadSpeed.256000.windows=256000
13622+
adafruit_feather_esp32c6.menu.UploadSpeed.256000.upload.speed=256000
13623+
adafruit_feather_esp32c6.menu.UploadSpeed.230400.windows.upload.speed=256000
13624+
adafruit_feather_esp32c6.menu.UploadSpeed.230400=230400
13625+
adafruit_feather_esp32c6.menu.UploadSpeed.230400.upload.speed=230400
13626+
adafruit_feather_esp32c6.menu.UploadSpeed.460800.linux=460800
13627+
adafruit_feather_esp32c6.menu.UploadSpeed.460800.macosx=460800
13628+
adafruit_feather_esp32c6.menu.UploadSpeed.460800.upload.speed=460800
13629+
adafruit_feather_esp32c6.menu.UploadSpeed.512000.windows=512000
13630+
adafruit_feather_esp32c6.menu.UploadSpeed.512000.upload.speed=512000
13631+
13632+
adafruit_feather_esp32c6.menu.DebugLevel.none=None
13633+
adafruit_feather_esp32c6.menu.DebugLevel.none.build.code_debug=0
13634+
adafruit_feather_esp32c6.menu.DebugLevel.error=Error
13635+
adafruit_feather_esp32c6.menu.DebugLevel.error.build.code_debug=1
13636+
adafruit_feather_esp32c6.menu.DebugLevel.warn=Warn
13637+
adafruit_feather_esp32c6.menu.DebugLevel.warn.build.code_debug=2
13638+
adafruit_feather_esp32c6.menu.DebugLevel.info=Info
13639+
adafruit_feather_esp32c6.menu.DebugLevel.info.build.code_debug=3
13640+
adafruit_feather_esp32c6.menu.DebugLevel.debug=Debug
13641+
adafruit_feather_esp32c6.menu.DebugLevel.debug.build.code_debug=4
13642+
adafruit_feather_esp32c6.menu.DebugLevel.verbose=Verbose
13643+
adafruit_feather_esp32c6.menu.DebugLevel.verbose.build.code_debug=5
13644+
13645+
adafruit_feather_esp32c6.menu.EraseFlash.none=Disabled
13646+
adafruit_feather_esp32c6.menu.EraseFlash.none.upload.erase_cmd=
13647+
adafruit_feather_esp32c6.menu.EraseFlash.all=Enabled
13648+
adafruit_feather_esp32c6.menu.EraseFlash.all.upload.erase_cmd=-e
13649+
13650+
adafruit_feather_esp32c6.menu.ZigbeeMode.default=Disabled
13651+
adafruit_feather_esp32c6.menu.ZigbeeMode.default.build.zigbee_mode=
13652+
adafruit_feather_esp32c6.menu.ZigbeeMode.default.build.zigbee_libs=
13653+
adafruit_feather_esp32c6.menu.ZigbeeMode.ed=Zigbee ED (end device)
13654+
adafruit_feather_esp32c6.menu.ZigbeeMode.ed.build.zigbee_mode=-DZIGBEE_MODE_ED
13655+
adafruit_feather_esp32c6.menu.ZigbeeMode.ed.build.zigbee_libs=-lesp_zb_api_ed -lesp_zb_cli_command -lzboss_stack.ed -lzboss_port
13656+
adafruit_feather_esp32c6.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator)
13657+
adafruit_feather_esp32c6.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
13658+
adafruit_feather_esp32c6.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr -lzboss_port
13659+
adafruit_feather_esp32c6.menu.ZigbeeMode.rcp=Zigbee RCP (radio co-processor)
13660+
adafruit_feather_esp32c6.menu.ZigbeeMode.rcp.build.zigbee_mode=-DZIGBEE_MODE_RCP
13661+
adafruit_feather_esp32c6.menu.ZigbeeMode.rcp.build.zigbee_libs=-lesp_zb_api_rcp -lesp_zb_cli_command -lzboss_stack.rcp -lzboss_port
13662+
13663+
13664+
1348613665
##############################################################
1348713666
# Adafruit QT Py ESP32
1348813667

Diff for: variants/adafruit_feather_esp32c6/pins_arduino.h

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
#define PIN_NEOPIXEL 9
8+
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9+
static const uint8_t LED_BUILTIN = 15;
10+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
11+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
12+
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite()
13+
#define RGB_BUILTIN (SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL)
14+
#define RGB_BRIGHTNESS 64
15+
16+
#define NEOPIXEL_I2C_POWER 20 // I2C power pin
17+
#define PIN_NEOPIXEL_I2C_POWER 20 // I2C power pin
18+
19+
static const uint8_t TX = 16;
20+
static const uint8_t RX = 17;
21+
22+
static const uint8_t SDA = 19;
23+
static const uint8_t SCL = 18;
24+
25+
static const uint8_t SS = 0;
26+
static const uint8_t MOSI = 22;
27+
static const uint8_t MISO = 23;
28+
static const uint8_t SCK = 21;
29+
30+
static const uint8_t A0 = 1;
31+
static const uint8_t A1 = 4;
32+
static const uint8_t A2 = 6;
33+
static const uint8_t A3 = 5;
34+
static const uint8_t A4 = 3;
35+
static const uint8_t A5 = 2;
36+
static const uint8_t A6 = 0;
37+
38+
#endif /* Pins_Arduino_h */

Diff for: variants/adafruit_feather_esp32c6/variant.cpp

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
#include "esp32-hal-gpio.h"
26+
#include "pins_arduino.h"
27+
28+
extern "C" {
29+
30+
// Initialize variant/board, called before setup()
31+
void initVariant(void) {
32+
// This board has a power control pin, and we must set it to output and high
33+
// in order to enable the NeoPixels & I2C
34+
pinMode(NEOPIXEL_I2C_POWER, OUTPUT);
35+
digitalWrite(NEOPIXEL_I2C_POWER, HIGH);
36+
}
37+
}

0 commit comments

Comments
 (0)