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

add defmt-itm #335

Merged
merged 5 commits into from
Jan 12, 2021
Merged

add defmt-itm #335

merged 5 commits into from
Jan 12, 2021

Conversation

japaric
Copy link
Member

@japaric japaric commented Jan 12, 2021

this is a new defmt transport crate

static ENABLED: AtomicBool = AtomicBool::new(false);

/// Enables defmt logging over the ITM stimulus port 0
pub fn enable(itm: ITM) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may want to make the stimulus port configurable in the feature that can be added backwards compatibility by adding a second function with signature fn(ITM, port_number: u8)

firmware/defmt-itm/src/lib.rs Outdated Show resolved Hide resolved
firmware/defmt-itm/src/lib.rs Show resolved Hide resolved
firmware/defmt-itm/src/lib.rs Outdated Show resolved Hide resolved
japaric and others added 2 commits January 12, 2021 15:35
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
@jonas-schievink
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 12, 2021

Build succeeded:

@bors bors bot merged commit 5dc83b2 into main Jan 12, 2021
@bors bors bot deleted the itm branch January 12, 2021 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants