Skip to content

Commit

Permalink
Switch puzzle-fw to use RTIC as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Dec 12, 2024
1 parent 7f15c3e commit cdb517f
Show file tree
Hide file tree
Showing 3 changed files with 650 additions and 412 deletions.
176 changes: 168 additions & 8 deletions nrf52-code/puzzle-fw/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 8 additions & 27 deletions nrf52-code/puzzle-fw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,15 @@ version = "0.0.0"

[dependencies]
consts = { path = "../consts" }
cortex-m = {version = "0.7.7", features = ["critical-section-single-core"]}
cortex-m-rt = "0.7.5"
critical-section = "1.2.0"
defmt = "0.3.10"
defmt-rtt = "0.4.1"
dongle = { path = "../boards/dongle" }
embedded-hal = "1.0"
heapless = "0.8"
usb-device = "0.3"
usbd-hid = "0.8"
usbd-serial = "0.2"
heapless = { version = "0.8.0", features = ["defmt-03"] }
rtic = { version = "2.1.2", features = ["thumbv7-backend"] }
rtic-monotonics = { version = "2.0.3", features = ["cortex-m-systick"] }
usb-device = { version = "0.3.2", features = ["defmt"] }
usbd-hid = { version = "0.8.2", features = ["defmt"] }
usbd-serial = "0.2.2"

[build-dependencies]
rand = "0.8.5"

# optimize code in both profiles
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # !
incremental = false
lto = "fat"
opt-level = 'z' # !
overflow-checks = false

[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = "fat"
opt-level = 3
overflow-checks = false
Loading

0 comments on commit cdb517f

Please sign in to comment.