Merge pull request #398 from jannic/defmt-0.3

Update examples to defmt 0.3
This commit is contained in:
Jan Niehusmann 2022-08-02 22:00:11 +02:00 committed by GitHub
commit 5448a12b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 27 additions and 12 deletions

View file

@ -16,7 +16,7 @@ rp2040-boot2 = { version = "0.2.0", optional = true }
rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
cortex-m-rt = { version = "0.7.0", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] }
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
embedded-time = "0.12.0"
[dev-dependencies]

View file

@ -23,8 +23,8 @@ panic-halt= "0.2.0"
nb = "1.0"
embedded-graphics = "0.7.1"
defmt = "0.2.0"
defmt-rtt = "0.2.0"
defmt = "0.3.0"
defmt-rtt = "0.3.0"
[features]
default = ["boot2", "rt"]

View file

@ -23,8 +23,8 @@ embedded-hal ="0.2.5"
smart-leds = "0.3.0"
ws2812-pio = "0.3.0"
defmt = "0.2.0"
defmt-rtt = "0.2.0"
defmt = "0.3.0"
defmt-rtt = "0.3.0"
[features]
default = ["boot2", "rt"]

View file

@ -0,0 +1,6 @@
//! This build script makes sure the linker flag -Tdefmt.x is added
//! for the examples.
fn main() {
println!("cargo:rustc-link-arg-examples=-Tdefmt.x");
}

View file

@ -21,8 +21,8 @@ embedded-time = "0.12.0"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
defmt = "0.2.0"
defmt-rtt = "0.2.0"
defmt = "0.3.0"
defmt-rtt = "0.3.0"
[features]
default = ["boot2", "rt"]

View file

@ -0,0 +1,6 @@
//! This build script makes sure the linker flag -Tdefmt.x is added
//! for the examples.
fn main() {
println!("cargo:rustc-link-arg-examples=-Tdefmt.x");
}

View file

@ -37,8 +37,8 @@ hd44780-driver = "0.4.0"
pio = "0.2.0"
pio-proc = "0.2.1"
defmt = "0.2.0"
defmt-rtt = "0.2.0"
defmt = "0.3.0"
defmt-rtt = "0.3.0"
[features]
default = ["boot2", "rt"]

6
boards/rp-pico/build.rs Normal file
View file

@ -0,0 +1,6 @@
//! This build script makes sure the linker flag -Tdefmt.x is added
//! for the examples.
fn main() {
println!("cargo:rustc-link-arg-examples=-Tdefmt.x");
}

View file

@ -37,9 +37,6 @@ hd44780-driver = "0.4.0"
pio = "0.2.0"
pio-proc = "0.2.1"
defmt = "0.2.0"
defmt-rtt = "0.2.0"
[features]
default = ["boot2", "rt"]
boot2 = ["rp2040-boot2"]