diff --git a/rp2040-hal/src/multicore.rs b/rp2040-hal/src/multicore.rs index 8d2fd167f..85c811226 100644 --- a/rp2040-hal/src/multicore.rs +++ b/rp2040-hal/src/multicore.rs @@ -163,6 +163,8 @@ impl Stack { /// No mutable references to that memory must exist. /// Therefore, a function that gets passed such an object is free to write /// to arbitrary memory locations in the range. +#[derive(Debug)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct StackAllocation { /// Start and end pointer of the StackAllocation as a Range mem: Range<*mut usize>, diff --git a/rp235x-hal/src/multicore.rs b/rp235x-hal/src/multicore.rs index cdf406f8d..bcd8a468c 100644 --- a/rp235x-hal/src/multicore.rs +++ b/rp235x-hal/src/multicore.rs @@ -147,6 +147,8 @@ impl Stack { /// No mutable references to that memory must exist. /// Therefore, a function that gets passed such an object is free to write /// to arbitrary memory locations in the range. +#[derive(Debug)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct StackAllocation { /// Start and end pointer of the StackAllocation as a Range mem: Range<*mut usize>,