Skip to content

Commit 6cc41bd

Browse files
committed
bsp(pygamer): Add defmt feature
1 parent 796283f commit 6cc41bd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

boards/pygamer/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ usbd-serial = "0.2"
5252
[features]
5353
# ask the HAL to enable atsamd51j support
5454
default = ["rt", "atsamd-hal/samd51j"]
55+
defmt = ["atsamd-hal/defmt"]
5556
dma = ["atsamd-hal/dma"]
5657
max-channels = ["dma", "atsamd-hal/max-channels"]
5758
neopixel-spi = ["dep:ws2812-spi"]

boards/pygamer/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ fn main() {
1212
println!("cargo:rustc-link-search={}", out.display());
1313
println!("cargo:rerun-if-changed=memory.x");
1414
}
15+
if env::var_os("CARGO_FEATURE_DEFMT").is_some() {
16+
println!("cargo:rustc-link-arg=-Tdefmt.x");
17+
}
1518
println!("cargo:rerun-if-changed=build.rs");
1619
}

0 commit comments

Comments
 (0)