From 68eb48be44d2c775d2d20c838956619e8cb9c274 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 18 Aug 2022 15:56:21 +0000 Subject: [PATCH] Enable rp2040-hal/defmt feature in dev-dependencies This is a little bit hacky, as it relies on rp2040-hal actually using (and therefore linking) some defmt code when the defmt feature is enabled. However this solution has the advantage that it only affects dev-dependencies and therefore has no impact on the board crates themselves. Closes #420 --- boards/pimoroni-plasma-2040/Cargo.toml | 1 + boards/pimoroni-tiny2040/Cargo.toml | 1 + boards/rp-pico/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/boards/pimoroni-plasma-2040/Cargo.toml b/boards/pimoroni-plasma-2040/Cargo.toml index 33278b5..3707816 100644 --- a/boards/pimoroni-plasma-2040/Cargo.toml +++ b/boards/pimoroni-plasma-2040/Cargo.toml @@ -18,6 +18,7 @@ cortex-m-rt = { version = "0.7", optional = true } embedded-time = "0.12.0" [dev-dependencies] +rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0", features = [ "defmt" ] } panic-halt= "0.2.0" embedded-hal ="0.2.5" smart-leds = "0.3.0" diff --git a/boards/pimoroni-tiny2040/Cargo.toml b/boards/pimoroni-tiny2040/Cargo.toml index c743ea4..5b20f70 100644 --- a/boards/pimoroni-tiny2040/Cargo.toml +++ b/boards/pimoroni-tiny2040/Cargo.toml @@ -18,6 +18,7 @@ cortex-m-rt = { version = "0.7", optional = true } embedded-time = "0.12.0" [dev-dependencies] +rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0", features = [ "defmt" ] } panic-halt= "0.2.0" embedded-hal ="0.2.5" diff --git a/boards/rp-pico/Cargo.toml b/boards/rp-pico/Cargo.toml index e350a0e..2ef6b88 100644 --- a/boards/rp-pico/Cargo.toml +++ b/boards/rp-pico/Cargo.toml @@ -22,6 +22,7 @@ usbd-hid = "0.5.1" futures = { version = "0.3", default-features = false, optional = true } [dev-dependencies] +rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0", features = [ "defmt" ] } panic-halt= "0.2.0" embedded-hal ="0.2.5" cortex-m-rtic = "1.1.2"