Updated to RTIC 1.0 and defmt 0.3
This commit is contained in:
+4
-21
@@ -9,30 +9,13 @@ version = "0.1.0"
|
||||
members = ["testsuite"]
|
||||
|
||||
[dependencies]
|
||||
cortex-m = "0.7.1"
|
||||
cortex-m-rt = "0.6.13"
|
||||
defmt = "0.2.0"
|
||||
defmt-rtt = "0.2.0"
|
||||
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
|
||||
cortex-m-rtic = "0.6.0-rc.4"
|
||||
defmt = "0.3.0"
|
||||
defmt-rtt = "0.3.0"
|
||||
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
||||
cortex-m-rtic = "1"
|
||||
# TODO(4) enter your HAL here
|
||||
# some-hal = "1.2.3"
|
||||
|
||||
[features]
|
||||
# set logging levels here
|
||||
default = [
|
||||
"defmt-default",
|
||||
# "dependency-a/defmt-trace",
|
||||
]
|
||||
|
||||
# do NOT modify these features
|
||||
defmt-default = []
|
||||
defmt-trace = []
|
||||
defmt-debug = []
|
||||
defmt-info = []
|
||||
defmt-warn = []
|
||||
defmt-error = []
|
||||
|
||||
# cargo build/run
|
||||
[profile.dev]
|
||||
codegen-units = 1
|
||||
|
||||
@@ -43,8 +43,6 @@ mod app {
|
||||
}
|
||||
|
||||
// Optional idle, can be removed if not needed.
|
||||
// Note that removing this will put the MCU to sleep when no task is running, and this
|
||||
// generally breaks RTT based printing.
|
||||
#[idle]
|
||||
fn idle(_: idle::Context) -> ! {
|
||||
defmt::info!("idle");
|
||||
|
||||
+7
-22
@@ -3,7 +3,7 @@
|
||||
authors = ["{{authors}}"]
|
||||
name = "testsuite"
|
||||
publish = false
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
version = "0.1.0"
|
||||
|
||||
[lib]
|
||||
@@ -15,25 +15,10 @@ harness = false
|
||||
|
||||
[dependencies]
|
||||
{{project-name}} = { path = ".." }
|
||||
cortex-m = "0.7.1"
|
||||
cortex-m-rt = "0.6.12"
|
||||
defmt = "0.2.0"
|
||||
defmt-rtt = "0.2.0"
|
||||
defmt-test = "0.2.0"
|
||||
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
|
||||
cortex-m = "0.7"
|
||||
cortex-m-rt = "0.7"
|
||||
defmt = "0.3.0"
|
||||
defmt-rtt = "0.3.0"
|
||||
defmt-test = "0.3.0"
|
||||
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
||||
|
||||
[features]
|
||||
# set logging levels here
|
||||
default = [
|
||||
# in tests, enable all logs
|
||||
"defmt-trace",
|
||||
# "dependency-a/defmt-trace",
|
||||
]
|
||||
|
||||
# do NOT modify these features
|
||||
defmt-default = []
|
||||
defmt-trace = []
|
||||
defmt-debug = []
|
||||
defmt-info = []
|
||||
defmt-warn = []
|
||||
defmt-error = []
|
||||
|
||||
Reference in New Issue
Block a user