Skip to content

Commit 10501ea

Browse files
authored
Merge pull request #72 from espressif/master
update 05022022
2 parents b08ac00 + ab6e010 commit 10501ea

File tree

23 files changed

+972
-168
lines changed

23 files changed

+972
-168
lines changed

Diff for: .github/workflows/upload-idf-component.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Push components to https://components.espressif.com
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
jobs:
7+
upload_components:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
submodules: "recursive"
13+
14+
- name: Upload components to the component registry
15+
uses: espressif/github-actions/upload_components@master
16+
with:
17+
name: arduino-esp32
18+
namespace: espressif
19+
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}

Diff for: boards.txt

+278
Original file line numberDiff line numberDiff line change
@@ -5088,6 +5088,284 @@ adafruit_qtpy_esp32s2.menu.DebugLevel.debug.build.code_debug=4
50885088
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose=Verbose
50895089
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose.build.code_debug=5
50905090

5091+
##############################################################
5092+
5093+
adafruit_qtpy_esp32c3.name=Adafruit QT Py ESP32-C3
5094+
adafruit_qtpy_esp32c3.vid.0=0x303a
5095+
adafruit_qtpy_esp32c3.pid.0=0x1001
5096+
5097+
adafruit_qtpy_esp32c3.upload.tool=esptool_py
5098+
adafruit_qtpy_esp32c3.upload.maximum_size=1310720
5099+
adafruit_qtpy_esp32c3.upload.maximum_data_size=327680
5100+
adafruit_qtpy_esp32c3.upload.flags=
5101+
adafruit_qtpy_esp32c3.upload.extra_flags=
5102+
adafruit_qtpy_esp32c3.upload.use_1200bps_touch=false
5103+
adafruit_qtpy_esp32c3.upload.wait_for_upload_port=false
5104+
5105+
adafruit_qtpy_esp32c3.serial.disableDTR=false
5106+
adafruit_qtpy_esp32c3.serial.disableRTS=false
5107+
5108+
adafruit_qtpy_esp32c3.build.tarch=riscv32
5109+
adafruit_qtpy_esp32c3.build.target=esp
5110+
adafruit_qtpy_esp32c3.build.mcu=esp32c3
5111+
adafruit_qtpy_esp32c3.build.core=esp32
5112+
adafruit_qtpy_esp32c3.build.variant=adafruit_qtpy_esp32c3
5113+
adafruit_qtpy_esp32c3.build.board=ADAFRUIT_QTPY_ESP32C3
5114+
adafruit_qtpy_esp32c3.build.bootloader_addr=0x0
5115+
5116+
adafruit_qtpy_esp32c3.build.cdc_on_boot=0
5117+
adafruit_qtpy_esp32c3.build.f_cpu=160000000L
5118+
adafruit_qtpy_esp32c3.build.flash_size=4MB
5119+
adafruit_qtpy_esp32c3.build.flash_freq=80m
5120+
adafruit_qtpy_esp32c3.build.flash_mode=dout
5121+
adafruit_qtpy_esp32c3.build.boot=dout
5122+
adafruit_qtpy_esp32c3.build.partitions=default
5123+
adafruit_qtpy_esp32c3.build.defines=
5124+
5125+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.cdc=Enabled
5126+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
5127+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.default=Disabled
5128+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.default.build.cdc_on_boot=0
5129+
5130+
adafruit_qtpy_esp32c3.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
5131+
adafruit_qtpy_esp32c3.menu.PartitionScheme.default.build.partitions=default
5132+
adafruit_qtpy_esp32c3.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
5133+
adafruit_qtpy_esp32c3.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
5134+
adafruit_qtpy_esp32c3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
5135+
adafruit_qtpy_esp32c3.menu.PartitionScheme.minimal.build.partitions=minimal
5136+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
5137+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota.build.partitions=no_ota
5138+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5139+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
5140+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
5141+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
5142+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
5143+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
5144+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
5145+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
5146+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
5147+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
5148+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
5149+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app.build.partitions=huge_app
5150+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
5151+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
5152+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5153+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5154+
5155+
adafruit_qtpy_esp32c3.menu.CPUFreq.160=160MHz (WiFi)
5156+
adafruit_qtpy_esp32c3.menu.CPUFreq.160.build.f_cpu=160000000L
5157+
adafruit_qtpy_esp32c3.menu.CPUFreq.80=80MHz (WiFi)
5158+
adafruit_qtpy_esp32c3.menu.CPUFreq.80.build.f_cpu=80000000L
5159+
adafruit_qtpy_esp32c3.menu.CPUFreq.40=40MHz
5160+
adafruit_qtpy_esp32c3.menu.CPUFreq.40.build.f_cpu=40000000L
5161+
adafruit_qtpy_esp32c3.menu.CPUFreq.20=20MHz
5162+
adafruit_qtpy_esp32c3.menu.CPUFreq.20.build.f_cpu=20000000L
5163+
adafruit_qtpy_esp32c3.menu.CPUFreq.10=10MHz
5164+
adafruit_qtpy_esp32c3.menu.CPUFreq.10.build.f_cpu=10000000L
5165+
5166+
adafruit_qtpy_esp32c3.menu.FlashMode.dout=DOUT
5167+
adafruit_qtpy_esp32c3.menu.FlashMode.dout.build.flash_mode=dout
5168+
adafruit_qtpy_esp32c3.menu.FlashMode.dout.build.boot=dout
5169+
adafruit_qtpy_esp32c3.menu.FlashMode.qio=QIO
5170+
adafruit_qtpy_esp32c3.menu.FlashMode.qio.build.flash_mode=dio
5171+
adafruit_qtpy_esp32c3.menu.FlashMode.qio.build.boot=qio
5172+
adafruit_qtpy_esp32c3.menu.FlashMode.dio=DIO
5173+
adafruit_qtpy_esp32c3.menu.FlashMode.dio.build.flash_mode=dio
5174+
adafruit_qtpy_esp32c3.menu.FlashMode.dio.build.boot=dio
5175+
adafruit_qtpy_esp32c3.menu.FlashMode.qout=QOUT
5176+
adafruit_qtpy_esp32c3.menu.FlashMode.qout.build.flash_mode=dout
5177+
adafruit_qtpy_esp32c3.menu.FlashMode.qout.build.boot=qout
5178+
5179+
adafruit_qtpy_esp32c3.menu.FlashFreq.80=80MHz
5180+
adafruit_qtpy_esp32c3.menu.FlashFreq.80.build.flash_freq=80m
5181+
adafruit_qtpy_esp32c3.menu.FlashFreq.40=40MHz
5182+
adafruit_qtpy_esp32c3.menu.FlashFreq.40.build.flash_freq=40m
5183+
5184+
adafruit_qtpy_esp32c3.menu.FlashSize.4M=4MB (32Mb)
5185+
adafruit_qtpy_esp32c3.menu.FlashSize.4M.build.flash_size=4MB
5186+
adafruit_qtpy_esp32c3.menu.FlashSize.2M=2MB (16Mb)
5187+
adafruit_qtpy_esp32c3.menu.FlashSize.2M.build.flash_size=2MB
5188+
adafruit_qtpy_esp32c3.menu.FlashSize.2M.build.partitions=minimal
5189+
5190+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200=115200
5191+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200.upload.speed=115200
5192+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600=921600
5193+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600.upload.speed=921600
5194+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600=921600
5195+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600.upload.speed=921600
5196+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200=115200
5197+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200.upload.speed=115200
5198+
adafruit_qtpy_esp32c3.menu.UploadSpeed.256000.windows=256000
5199+
adafruit_qtpy_esp32c3.menu.UploadSpeed.256000.upload.speed=256000
5200+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400.windows.upload.speed=256000
5201+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400=230400
5202+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400.upload.speed=230400
5203+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.linux=460800
5204+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.macosx=460800
5205+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.upload.speed=460800
5206+
adafruit_qtpy_esp32c3.menu.UploadSpeed.512000.windows=512000
5207+
adafruit_qtpy_esp32c3.menu.UploadSpeed.512000.upload.speed=512000
5208+
5209+
adafruit_qtpy_esp32c3.menu.DebugLevel.none=None
5210+
adafruit_qtpy_esp32c3.menu.DebugLevel.none.build.code_debug=0
5211+
adafruit_qtpy_esp32c3.menu.DebugLevel.error=Error
5212+
adafruit_qtpy_esp32c3.menu.DebugLevel.error.build.code_debug=1
5213+
adafruit_qtpy_esp32c3.menu.DebugLevel.warn=Warn
5214+
adafruit_qtpy_esp32c3.menu.DebugLevel.warn.build.code_debug=2
5215+
adafruit_qtpy_esp32c3.menu.DebugLevel.info=Info
5216+
adafruit_qtpy_esp32c3.menu.DebugLevel.info.build.code_debug=3
5217+
adafruit_qtpy_esp32c3.menu.DebugLevel.debug=Debug
5218+
adafruit_qtpy_esp32c3.menu.DebugLevel.debug.build.code_debug=4
5219+
adafruit_qtpy_esp32c3.menu.DebugLevel.verbose=Verbose
5220+
adafruit_qtpy_esp32c3.menu.DebugLevel.verbose.build.code_debug=5
5221+
5222+
5223+
adafruit_qtpy_esp32_pico.name=Adafruit QT Py ESP32 Pico
5224+
5225+
adafruit_qtpy_esp32_pico.upload.tool=esptool_py
5226+
adafruit_qtpy_esp32_pico.upload.maximum_size=1310720
5227+
adafruit_qtpy_esp32_pico.upload.maximum_data_size=327680
5228+
adafruit_qtpy_esp32_pico.upload.flags=
5229+
adafruit_qtpy_esp32_pico.upload.extra_flags=
5230+
5231+
adafruit_qtpy_esp32_pico.serial.disableDTR=true
5232+
adafruit_qtpy_esp32_pico.serial.disableRTS=true
5233+
5234+
adafruit_qtpy_esp32_pico.build.tarch=xtensa
5235+
adafruit_qtpy_esp32_pico.build.bootloader_addr=0x1000
5236+
adafruit_qtpy_esp32_pico.build.target=esp32
5237+
adafruit_qtpy_esp32_pico.build.mcu=esp32
5238+
adafruit_qtpy_esp32_pico.build.core=esp32
5239+
adafruit_qtpy_esp32_pico.build.variant=adafruit_qtpy_esp32
5240+
adafruit_qtpy_esp32_pico.build.board=ADAFRUIT_QTPY_ESP32_PICO
5241+
5242+
adafruit_qtpy_esp32_pico.build.f_cpu=240000000L
5243+
adafruit_qtpy_esp32_pico.build.flash_size=8MB
5244+
adafruit_qtpy_esp32_pico.build.flash_freq=80m
5245+
adafruit_qtpy_esp32_pico.build.flash_mode=dio
5246+
adafruit_qtpy_esp32_pico.build.boot=dio
5247+
adafruit_qtpy_esp32_pico.build.partitions=default
5248+
adafruit_qtpy_esp32_pico.build.defines=
5249+
5250+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.default=Default
5251+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.default.build.partitions=default
5252+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota=No OTA (Large APP)
5253+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota.build.partitions=no_ota
5254+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5255+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5256+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5257+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5258+
5259+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.921600=921600
5260+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.921600.upload.speed=921600
5261+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.115200=115200
5262+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.115200.upload.speed=115200
5263+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.256000.windows=256000
5264+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.256000.upload.speed=256000
5265+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400.windows.upload.speed=256000
5266+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400=230400
5267+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400.upload.speed=230400
5268+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.linux=460800
5269+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.macosx=460800
5270+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.upload.speed=460800
5271+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.512000.windows=512000
5272+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.512000.upload.speed=512000
5273+
5274+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled=Enabled
5275+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
5276+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled.build.extra_libs=
5277+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled=Disabled
5278+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled.build.defines=
5279+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled.build.extra_libs=
5280+
5281+
adafruit_qtpy_esp32_pico.menu.DebugLevel.none=None
5282+
adafruit_qtpy_esp32_pico.menu.DebugLevel.none.build.code_debug=0
5283+
adafruit_qtpy_esp32_pico.menu.DebugLevel.error=Error
5284+
adafruit_qtpy_esp32_pico.menu.DebugLevel.error.build.code_debug=1
5285+
adafruit_qtpy_esp32_pico.menu.DebugLevel.warn=Warn
5286+
adafruit_qtpy_esp32_pico.menu.DebugLevel.warn.build.code_debug=2
5287+
adafruit_qtpy_esp32_pico.menu.DebugLevel.info=Info
5288+
adafruit_qtpy_esp32_pico.menu.DebugLevel.info.build.code_debug=3
5289+
adafruit_qtpy_esp32_pico.menu.DebugLevel.debug=Debug
5290+
adafruit_qtpy_esp32_pico.menu.DebugLevel.debug.build.code_debug=4
5291+
adafruit_qtpy_esp32_pico.menu.DebugLevel.verbose=Verbose
5292+
adafruit_qtpy_esp32_pico.menu.DebugLevel.verbose.build.code_debug=5
5293+
5294+
5295+
5296+
adafruit_feather_esp32_v2.name=Adafruit Feather ESP32 V2
5297+
5298+
adafruit_feather_esp32_v2.upload.tool=esptool_py
5299+
adafruit_feather_esp32_v2.upload.maximum_size=1310720
5300+
adafruit_feather_esp32_v2.upload.maximum_data_size=327680
5301+
adafruit_feather_esp32_v2.upload.flags=
5302+
adafruit_feather_esp32_v2.upload.extra_flags=
5303+
5304+
adafruit_feather_esp32_v2.serial.disableDTR=true
5305+
adafruit_feather_esp32_v2.serial.disableRTS=true
5306+
5307+
adafruit_feather_esp32_v2.build.tarch=xtensa
5308+
adafruit_feather_esp32_v2.build.bootloader_addr=0x1000
5309+
adafruit_feather_esp32_v2.build.target=esp32
5310+
adafruit_feather_esp32_v2.build.mcu=esp32
5311+
adafruit_feather_esp32_v2.build.core=esp32
5312+
adafruit_feather_esp32_v2.build.variant=adafruit_feather_esp32_v2
5313+
adafruit_feather_esp32_v2.build.board=ADAFRUIT_FEATHER_ESP32_V2
5314+
5315+
adafruit_feather_esp32_v2.build.f_cpu=240000000L
5316+
adafruit_feather_esp32_v2.build.flash_size=8MB
5317+
adafruit_feather_esp32_v2.build.flash_freq=80m
5318+
adafruit_feather_esp32_v2.build.flash_mode=dio
5319+
adafruit_feather_esp32_v2.build.boot=dio
5320+
adafruit_feather_esp32_v2.build.partitions=default
5321+
adafruit_feather_esp32_v2.build.defines=
5322+
5323+
adafruit_feather_esp32_v2.menu.PartitionScheme.default=Default
5324+
adafruit_feather_esp32_v2.menu.PartitionScheme.default.build.partitions=default
5325+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota=No OTA (Large APP)
5326+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota.build.partitions=no_ota
5327+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5328+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5329+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5330+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5331+
5332+
adafruit_feather_esp32_v2.menu.UploadSpeed.921600=921600
5333+
adafruit_feather_esp32_v2.menu.UploadSpeed.921600.upload.speed=921600
5334+
adafruit_feather_esp32_v2.menu.UploadSpeed.115200=115200
5335+
adafruit_feather_esp32_v2.menu.UploadSpeed.115200.upload.speed=115200
5336+
adafruit_feather_esp32_v2.menu.UploadSpeed.256000.windows=256000
5337+
adafruit_feather_esp32_v2.menu.UploadSpeed.256000.upload.speed=256000
5338+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400.windows.upload.speed=256000
5339+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400=230400
5340+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400.upload.speed=230400
5341+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.linux=460800
5342+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.macosx=460800
5343+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.upload.speed=460800
5344+
adafruit_feather_esp32_v2.menu.UploadSpeed.512000.windows=512000
5345+
adafruit_feather_esp32_v2.menu.UploadSpeed.512000.upload.speed=512000
5346+
5347+
adafruit_feather_esp32_v2.menu.PSRAM.enabled=Enabled
5348+
adafruit_feather_esp32_v2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
5349+
adafruit_feather_esp32_v2.menu.PSRAM.enabled.build.extra_libs=
5350+
adafruit_feather_esp32_v2.menu.PSRAM.disabled=Disabled
5351+
adafruit_feather_esp32_v2.menu.PSRAM.disabled.build.defines=
5352+
adafruit_feather_esp32_v2.menu.PSRAM.disabled.build.extra_libs=
5353+
5354+
adafruit_feather_esp32_v2.menu.DebugLevel.none=None
5355+
adafruit_feather_esp32_v2.menu.DebugLevel.none.build.code_debug=0
5356+
adafruit_feather_esp32_v2.menu.DebugLevel.error=Error
5357+
adafruit_feather_esp32_v2.menu.DebugLevel.error.build.code_debug=1
5358+
adafruit_feather_esp32_v2.menu.DebugLevel.warn=Warn
5359+
adafruit_feather_esp32_v2.menu.DebugLevel.warn.build.code_debug=2
5360+
adafruit_feather_esp32_v2.menu.DebugLevel.info=Info
5361+
adafruit_feather_esp32_v2.menu.DebugLevel.info.build.code_debug=3
5362+
adafruit_feather_esp32_v2.menu.DebugLevel.debug=Debug
5363+
adafruit_feather_esp32_v2.menu.DebugLevel.debug.build.code_debug=4
5364+
adafruit_feather_esp32_v2.menu.DebugLevel.verbose=Verbose
5365+
adafruit_feather_esp32_v2.menu.DebugLevel.verbose.build.code_debug=5
5366+
5367+
5368+
50915369
##############################################################
50925370

50935371
nodemcu-32s.name=NodeMCU-32S

Diff for: cores/esp32/esp32-hal-gpio.c

+26
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,32 @@
5252
#include "esp_intr.h"
5353
#endif
5454

55+
#include "soc/soc_caps.h"
56+
// It fixes lack of pin definition for S3 and for any future SoC
57+
// this function works for ESP32, ESP32-S2 and ESP32-S3 - including the C3, it will return -1 for any pin
58+
#if SOC_TOUCH_SENSOR_NUM > 0
59+
#include "soc/touch_sensor_periph.h"
60+
int8_t digitalPinToTouchChannel(uint8_t pin)
61+
{
62+
int8_t ret = -1;
63+
if (pin < SOC_GPIO_PIN_COUNT) {
64+
for (uint8_t i = 0; i < SOC_TOUCH_SENSOR_NUM; i++) {
65+
if (touch_sensor_channel_io_map[i] == pin) {
66+
ret = i;
67+
break;
68+
}
69+
}
70+
}
71+
return ret;
72+
}
73+
#else
74+
// No Touch Sensor available
75+
int8_t digitalPinToTouchChannel(uint8_t pin)
76+
{
77+
return -1;
78+
}
79+
#endif
80+
5581
#if CONFIG_IDF_TARGET_ESP32
5682
const int8_t esp32_adc2gpio[20] = {36, 37, 38, 39, 32, 33, 34, 35, -1, -1, 4, 0, 2, 15, 13, 12, 14, 27, 25, 26};
5783
#elif CONFIG_IDF_TARGET_ESP32S2

Diff for: cores/esp32/esp32-hal-gpio.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ extern const int8_t esp32_adc2gpio[20];
8282
#define digitalPinCanOutput(pin) ((pin) < NUM_OUPUT_PINS && esp32_gpioMux[(pin)].reg)
8383
#define digitalPinToRtcPin(pin) (((pin) < SOC_GPIO_PIN_COUNT)?esp32_gpioMux[(pin)].rtc:-1)
8484
#define digitalPinToAnalogChannel(pin) (((pin) < SOC_GPIO_PIN_COUNT)?esp32_gpioMux[(pin)].adc:-1)
85-
#define digitalPinToTouchChannel(pin) (((pin) < SOC_GPIO_PIN_COUNT)?esp32_gpioMux[(pin)].touch:-1)
8685
#define digitalPinToDacChannel(pin) (((pin) == PIN_DAC1)?0:((pin) == PIN_DAC2)?1:-1)
8786

8887
void pinMode(uint8_t pin, uint8_t mode);
@@ -93,6 +92,8 @@ void attachInterrupt(uint8_t pin, void (*)(void), int mode);
9392
void attachInterruptArg(uint8_t pin, void (*)(void*), void * arg, int mode);
9493
void detachInterrupt(uint8_t pin);
9594

95+
int8_t digitalPinToTouchChannel(uint8_t pin);
96+
9697
#ifdef __cplusplus
9798
}
9899
#endif

0 commit comments

Comments
 (0)