aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2022-01-06 20:58:34 +0000
committerGravatar GitHub <noreply@github.com> 2022-01-06 20:58:34 +0000
commitef049c93808cf46e5151d2cc0b0ca0b00f90be10 (patch)
tree5c55172847af50512f19b4e67401f8954a3919aa
parente0b93a022d3288e57f4743bf0d548baf78d01b02 (diff)
parenta66e4a6db41533ad12b8a6936d31b80a4d7f015d (diff)
downloadcortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.tar.gz
cortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.tar.zst
cortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.zip
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 <v@tmplt.dev>
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/peripheral/tpiu.rs11
2 files changed, 7 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04bf9d9..5b04ea1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- DWT: add `configure` API for address, cycle count comparison (#342, #367).
- ITM: add `configure` API (#342).
- TPIU: add API for *Formatter and Flush Control* (FFCR) and *Selected Pin Control* (SPPR) registers (#342).
+- TPIU: add `swo_supports` for checking what SWO configurations the target supports. (#381)
- 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).
- Added the ability to name the statics generated by `singleton!()` for better debuggability (#364, #380).
diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs
index 3ff5f55..5d2c2bb 100644
--- a/src/peripheral/tpiu.rs
+++ b/src/peripheral/tpiu.rs
@@ -87,17 +87,18 @@ impl core::convert::TryFrom<u8> for TraceProtocol {
}
}
-/// The SWO options supported by the TPIU.
+/// The SWO options supported by the TPIU, and the mimimum size of the
+/// FIFO output queue for trace data.
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
pub struct SWOSupports {
/// Whether UART/NRZ encoding is supported for SWO.
- nrz_encoding: bool,
+ pub nrz_encoding: bool,
/// Whether Manchester encoding is supported for SWO.
- manchester_encoding: bool,
+ pub manchester_encoding: bool,
/// Whether parallel trace port operation is supported.
- parallel_operation: bool,
+ pub parallel_operation: bool,
/// The minimum implemented FIFO queue size of the TPIU for trace data.
- min_queue_size: u8,
+ pub min_queue_size: u8,
}
impl TPIU {