Skip to content

Commit 154e662

Browse files
committed
expose logging subsystem for arduino IDE
* introduce `Logging Subsystem` option in arduino IDE * introduces `arduino` and `esp_idf` options * `esp_idf` option sets the `build.log_subsystem` variable to `-DUSE_ESP_IDF_LOG`, which is passed into `build.extra_flags` * `arduino` option is an empty str and therefore no new flags are added to `build.extra_flags` * cannot use `build.defines` as that conflicts with the PSRAM `-D` flag?
1 parent e8d0d31 commit 154e662

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

boards.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ menu.EraseFlash=Erase All Flash Before Sketch Upload
1919
menu.JTAGAdapter=JTAG Adapter
2020
menu.ZigbeeMode=Zigbee Mode
2121
menu.PinNumbers=Pin Numbering
22+
menu.LoggingSubsystem=Logging Subsystem
2223

2324
# Custom options
2425
menu.Revision=Board Revision
@@ -36924,6 +36925,11 @@ XIAO_ESP32S3.menu.EraseFlash.none.upload.erase_cmd=
3692436925
XIAO_ESP32S3.menu.EraseFlash.all=Enabled
3692536926
XIAO_ESP32S3.menu.EraseFlash.all.upload.erase_cmd=-e
3692636927

36928+
XIAO_ESP32S3.menu.LoggingSubsystem.Arduino=Arduino
36929+
XIAO_ESP32S3.menu.LoggingSubsystem.Arduino.build.log_subsystem=
36930+
XIAO_ESP32S3.menu.LoggingSubsystem.ESP_IDF=ESP_IDF
36931+
XIAO_ESP32S3.menu.LoggingSubsystem.ESP_IDF.build.log_subsystem=-DUSE_ESP_IDF_LOG
36932+
3692736933
##############################################################
3692836934

3692936935
XIAO_ESP32S3_Plus.name=XIAO_ESP32S3_PLUS

platform.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ build.code_debug=0
102102
build.defines=
103103
build.loop_core=
104104
build.event_core=
105-
build.extra_flags=-DARDUINO_HOST_OS="{runtime.os}" -DARDUINO_FQBN="{build.fqbn}" -DESP32=ESP32 -DCORE_DEBUG_LEVEL={build.code_debug} {build.loop_core} {build.event_core} {build.defines} {build.extra_flags.{build.mcu}} {build.zigbee_mode}
105+
build.log_subsystem=
106+
build.extra_flags=-DARDUINO_HOST_OS="{runtime.os}" -DARDUINO_FQBN="{build.fqbn}" -DESP32=ESP32 -DCORE_DEBUG_LEVEL={build.code_debug} {build.loop_core} {build.event_core} {build.defines} {build.extra_flags.{build.mcu}} {build.zigbee_mode} {build.log_subsystem}
106107
build.extra_libs=
107108
build.memory_type={build.boot}_qspi
108109

0 commit comments

Comments
 (0)