Skip to content

Commit

Permalink
[Firmware] Use async wifi (#199)
Browse files Browse the repository at this point in the history
* WifiDevice doesn't satisfy Driver trait

* Fixed mismatch in embassy git hash

* Refactor peripherals to have a  type

* Refactored wifi task to be mostly done?

* Finished refactor

* Got everything working, but nrf code needs to be updated due to changes in USB

* Fixed nrf stuff

* Fixed more compile errors

* Clippy pt 1

* Fix net-ble compile error

* Fix clippy lints about unit args

* Got wifi working at runtime
  • Loading branch information
TheButlah authored Apr 4, 2023
1 parent 809f857 commit 60224d5
Show file tree
Hide file tree
Showing 16 changed files with 723 additions and 432 deletions.
13 changes: 13 additions & 0 deletions firmware/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ rustflags = [
# For defmt
"-C",
"link-arg=-Tdefmt.x",

# enable the atomic codegen option for RISCV
"-C", "target-feature=+a",

# tell the core library have atomics even though it's not specified in the target definition.
# NOTE: This is fine for load/store, but we don't support compare-and-swap, so we don't get
# full atomic features. For that, atomic_polyfill or the atomic trap handler should be used
# instead. But we don't need CAS in the firmware.
"--cfg", "target_has_atomic_load_store",
"--cfg", 'target_has_atomic_load_store="8"',
"--cfg", 'target_has_atomic_load_store="16"',
"--cfg", 'target_has_atomic_load_store="32"',
"--cfg", 'target_has_atomic_load_store="ptr"',
]

[target.xtensa-esp32-none-elf]
Expand Down
Loading

0 comments on commit 60224d5

Please sign in to comment.