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"]
|
members = ["testsuite"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.7.1"
|
defmt = "0.3.0"
|
||||||
cortex-m-rt = "0.6.13"
|
defmt-rtt = "0.3.0"
|
||||||
defmt = "0.2.0"
|
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
||||||
defmt-rtt = "0.2.0"
|
cortex-m-rtic = "1"
|
||||||
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
|
|
||||||
cortex-m-rtic = "0.6.0-rc.4"
|
|
||||||
# TODO(4) enter your HAL here
|
# TODO(4) enter your HAL here
|
||||||
# some-hal = "1.2.3"
|
# 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
|
# cargo build/run
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ mod app {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Optional idle, can be removed if not needed.
|
// 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]
|
#[idle]
|
||||||
fn idle(_: idle::Context) -> ! {
|
fn idle(_: idle::Context) -> ! {
|
||||||
defmt::info!("idle");
|
defmt::info!("idle");
|
||||||
|
|||||||
+7
-22
@@ -3,7 +3,7 @@
|
|||||||
authors = ["{{authors}}"]
|
authors = ["{{authors}}"]
|
||||||
name = "testsuite"
|
name = "testsuite"
|
||||||
publish = false
|
publish = false
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
@@ -15,25 +15,10 @@ harness = false
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
{{project-name}} = { path = ".." }
|
{{project-name}} = { path = ".." }
|
||||||
cortex-m = "0.7.1"
|
cortex-m = "0.7"
|
||||||
cortex-m-rt = "0.6.12"
|
cortex-m-rt = "0.7"
|
||||||
defmt = "0.2.0"
|
defmt = "0.3.0"
|
||||||
defmt-rtt = "0.2.0"
|
defmt-rtt = "0.3.0"
|
||||||
defmt-test = "0.2.0"
|
defmt-test = "0.3.0"
|
||||||
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
|
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