Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/picoruby-esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ idf_component_register(
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-i2c/ports/esp32/i2c.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-uart/ports/esp32/uart.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-require/ports/esp32/platform.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-ble/ports/esp32/ble.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-ble/ports/esp32/ble_peripheral.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-ble/ports/esp32/ble_central.c
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-ble/ports/esp32/nimble_owner.c
INCLUDE_DIRS
${COMPONENT_DIR}
${COMPONENT_DIR}/picoruby/include
Expand All @@ -97,6 +101,7 @@ idf_component_register(
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-littlefs/ports/esp32
${COMPONENT_DIR}/picoruby/mrbgems/mruby-compiler/include
${COMPONENT_DIR}/picoruby/mrbgems/mruby-compiler/lib/prism/include
${COMPONENT_DIR}/picoruby/mrbgems/picoruby-ble/ports/esp32
${ADDITIONAL_INCLUDE_DIRS}
PRIV_REQUIRES
esp_driver_gpio
Expand All @@ -112,6 +117,7 @@ idf_component_register(
nvs_flash
esp_psram
esp_driver_usb_serial_jtag
bt
)

add_definitions(
Expand Down
4 changes: 4 additions & 0 deletions components/picoruby-esp32/build_config/xtensa-esp-picoruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
conf.gem core: 'picoruby-uart'
conf.gem core: 'picoruby-pwm'

# BLE
conf.gem core: 'picoruby-ble'
conf.gem core: 'picoruby-ble-uart'

# others
conf.gem core: 'picoruby-rmt'
conf.gem core: 'picoruby-mbedtls'
Expand Down
15 changes: 15 additions & 0 deletions sdkconfigs/bt_nimble
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# BLE + NimBLE host stack sdkconfig fragment (BLE only, no WiFi concurrency)

CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
CONFIG_BT_BLUEDROID_ENABLED=n
CONFIG_BT_CONTROLLER_ENABLED=y

# picoruby-ble access callbacks run mruby value marshalling on the NimBLE
# host task; the 4096-byte default stack is too tight.
CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE=8192

# SW coex disabled: BLE-only build (no WiFi concurrency). The BT controller's
# coex_schm_status_bit_clear_wrapper path triggers a ROM-side coex_schm_lock
# crash on ESP32-S3 when SW_COEXIST is enabled but WiFi is not initialized.
CONFIG_SW_COEXIST_ENABLE=n
Loading