Skip to content

Commit bfde496

Browse files
authored
Merge pull request rp-rs#889 from jannic/issue-888
2 parents c7c44d8 + 9f66996 commit bfde496

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rp2040-hal/src/multicore.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ impl<const SIZE: usize> Stack<SIZE> {
163163
/// No mutable references to that memory must exist.
164164
/// Therefore, a function that gets passed such an object is free to write
165165
/// to arbitrary memory locations in the range.
166+
#[derive(Debug)]
167+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
166168
pub struct StackAllocation {
167169
/// Start and end pointer of the StackAllocation as a Range
168170
mem: Range<*mut usize>,

rp235x-hal/src/multicore.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ impl<const SIZE: usize> Stack<SIZE> {
147147
/// No mutable references to that memory must exist.
148148
/// Therefore, a function that gets passed such an object is free to write
149149
/// to arbitrary memory locations in the range.
150+
#[derive(Debug)]
151+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
150152
pub struct StackAllocation {
151153
/// Start and end pointer of the StackAllocation as a Range
152154
mem: Range<*mut usize>,

0 commit comments

Comments
 (0)