2020-06-09 09:52:27 +00:00
|
|
|
[package]
|
|
|
|
authors = ["Jorge Aparicio <jorge.aparicio@ferrous-systems.com>"]
|
|
|
|
edition = "2018"
|
2020-07-10 09:09:33 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-06-09 09:52:27 +00:00
|
|
|
name = "firmware"
|
2020-07-10 09:09:33 +00:00
|
|
|
version = "0.0.0"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
consts = { path = "../common/consts" }
|
|
|
|
quote = "1"
|
2021-03-16 13:13:40 +00:00
|
|
|
usb2 = "0.0.1"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
consts = { path = "../common/consts" }
|
2021-12-23 11:41:33 +00:00
|
|
|
cortex-m = "0.7.3"
|
2022-01-06 13:37:39 +00:00
|
|
|
cortex-m-rt = "0.7.1"
|
2022-01-07 11:34:53 +00:00
|
|
|
cortex-m-rtic = "1.0.0"
|
2021-12-23 11:41:33 +00:00
|
|
|
defmt = "0.3.0"
|
|
|
|
defmt-rtt = "0.3.1"
|
2020-06-10 10:09:21 +00:00
|
|
|
dk = { path = "../../boards/dk", features = ["advanced"] }
|
2021-12-23 11:41:33 +00:00
|
|
|
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
2020-06-09 09:52:27 +00:00
|
|
|
usb = { path = "../common/usb" }
|
2021-03-16 13:13:40 +00:00
|
|
|
usb2 = "0.0.1"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
2021-06-04 11:41:31 +00:00
|
|
|
[dependencies.heapless]
|
2021-12-23 11:41:33 +00:00
|
|
|
version = "0.7.9"
|
2021-06-04 11:41:31 +00:00
|
|
|
features = ["defmt-impl"]
|
|
|
|
|
2020-06-09 09:52:27 +00:00
|
|
|
# optimize code in both profiles
|
|
|
|
[profile.dev]
|
|
|
|
codegen-units = 1
|
2021-04-12 15:09:38 +00:00
|
|
|
debug = 2
|
2020-06-09 09:52:27 +00:00
|
|
|
debug-assertions = true # !
|
|
|
|
incremental = false
|
|
|
|
lto = "fat"
|
|
|
|
opt-level = 'z' # !
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 1
|
|
|
|
debug-assertions = false
|
|
|
|
incremental = false
|
|
|
|
lto = "fat"
|
|
|
|
opt-level = 3
|
|
|
|
overflow-checks = false
|
2021-04-12 15:09:38 +00:00
|
|
|
|