Skip to content

Commit ef049c9

Browse files
bors[bot]tmplt
andauthored
Merge #381
381: TPIU: swo_supports: make struct fields public, improve documentation r=thejpster a=tmplt A few small changes that I missed the first time around when the TPIU API was expanded. Co-authored-by: Viktor Sonesten <[email protected]>
2 parents e0b93a0 + a66e4a6 commit ef049c9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- DWT: add `configure` API for address, cycle count comparison (#342, #367).
1515
- ITM: add `configure` API (#342).
1616
- TPIU: add API for *Formatter and Flush Control* (FFCR) and *Selected Pin Control* (SPPR) registers (#342).
17+
- TPIU: add `swo_supports` for checking what SWO configurations the target supports. (#381)
1718
- Add `std` and `serde` crate features for improved host-side ITM decode functionality when working with the downstream `itm`, `cargo-rtic-scope` crates (#363, #366).
1819
- Added the ability to name the statics generated by `singleton!()` for better debuggability (#364, #380).
1920

src/peripheral/tpiu.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,18 @@ impl core::convert::TryFrom<u8> for TraceProtocol {
8787
}
8888
}
8989

90-
/// The SWO options supported by the TPIU.
90+
/// The SWO options supported by the TPIU, and the mimimum size of the
91+
/// FIFO output queue for trace data.
9192
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
9293
pub struct SWOSupports {
9394
/// Whether UART/NRZ encoding is supported for SWO.
94-
nrz_encoding: bool,
95+
pub nrz_encoding: bool,
9596
/// Whether Manchester encoding is supported for SWO.
96-
manchester_encoding: bool,
97+
pub manchester_encoding: bool,
9798
/// Whether parallel trace port operation is supported.
98-
parallel_operation: bool,
99+
pub parallel_operation: bool,
99100
/// The minimum implemented FIFO queue size of the TPIU for trace data.
100-
min_queue_size: u8,
101+
pub min_queue_size: u8,
101102
}
102103

103104
impl TPIU {

0 commit comments

Comments
 (0)