Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive Debug and defmt::Format for StackAllocation #889

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rp2040-hal/src/multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ impl<const SIZE: usize> Stack<SIZE> {
/// 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>,
Expand Down
2 changes: 2 additions & 0 deletions rp235x-hal/src/multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ impl<const SIZE: usize> Stack<SIZE> {
/// 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>,
Expand Down