Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
/ defmt-rtt-target Public archive

defmt logger implementation using rtt-target

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

akiles/defmt-rtt-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

Don't use this. rtt-target itself has defmt support now, making this crate unnecessary.

defmt-rtt-target

defmt logger implementation using rtt-target.

The official defmt-rtt crate has its own RTT implementation that is not externally exposed. This is done so that users can't corrupt the defmt log stream by manually writing to the RTT channel. This library exists as an alternate option for when you do need control over RTT, for example to log extra non-defmt data on other channels, or have a host->target "down channel".

If all you need is logging, you should use defmt-rtt instead of this.

Usage

  • Initialize rtt_target in your code
  • Call defmt_rtt_target::init() with the UpChannel you want to use for RTT printing. This should be channel 0, as that's the one all defmt tools use.
  • Now you can log with the standard defmt macros.

Note that all log output before calling defmt_rtt_target::init() is discarded.

License

Licensed under either of

at your option.

About

defmt logger implementation using rtt-target

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published