Skip to content

Commit

Permalink
Merge pull request #81 from embassy-rs/esp32-example
Browse files Browse the repository at this point in the history
Add example for esp32
  • Loading branch information
lulf authored Aug 20, 2024
2 parents f52cd9e + 2fd82b0 commit 6b474ff
Show file tree
Hide file tree
Showing 9 changed files with 1,847 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
needs: build
strategy:
matrix:
example: [nrf-sdc, serial-hci] #, apache-nimble]
example: [nrf-sdc, serial-hci, esp32] #, apache-nimble]
steps:
- uses: actions/checkout@v4
- name: Add dependencies
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ The advantage of this split is that the Host can generally be reused for differe
TrouBLE can use any controller that implements the traits from `bt-hci`. At present, that includes:

* [nRF Softdevice Controller](https://github.com/alexmoon/nrf-sdc). Use [`nrf-softdevice`](https://github.com/embassy-rs/nrf-softdevice) for the time being if you want a production ready BLE Rust stack for nRF.
* [Zephyr UART HCI](https://docs.zephyrproject.org/latest/samples/bluetooth/hci_uart/README.html).
* [UART HCI](https://docs.zephyrproject.org/latest/samples/bluetooth/hci_uart/README.html).
* [Raspberry Pi Pico W](https://github.com/embassy-rs/embassy/pull/2865) - This is still WIP and largely untested.
* [Apache NimBLE Controller](https://github.com/benbrittain/apache-nimble-sys).
* [ESP32](https://github.com/esp-rs/esp-hal).


## Current status
Expand Down
18 changes: 18 additions & 0 deletions examples/esp32/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[target.riscv32imc-unknown-none-elf]
runner = "espflash flash --monitor"


[env]
ESP_LOGLEVEL="INFO"

[build]
rustflags = [
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
# NOTE: May negatively impact performance of produced code
"-C", "force-frame-pointers",
]

target = "riscv32imc-unknown-none-elf"

[unstable]
build-std = ["core"]
Loading

0 comments on commit 6b474ff

Please sign in to comment.