Skip to content

Commit c80da84

Browse files
committed
itm: hide has_software_lock, locked
There functions are internally queried inside lock, unlock.
1 parent c8b8ca4 commit c80da84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
Also fixes `VectActive::from` to take a `u16` and subtract `16` for
1313
`VectActive::Interrupt`s to match `SBC::vect_active()` (#373).
1414
- DWT: add `configure` API for address, cycle count comparison (#342, #367).
15-
- ITM: add `configure` API; `lock`, `unlock`, `busy`, `locked` functions (#342, #383).
15+
- ITM: add `configure` API; `lock`, `unlock`, `busy` functions (#342, #383).
1616
- TPIU: add API for *Formatter and Flush Control* (FFCR) and *Selected Pin Control* (SPPR) registers (#342).
1717
- 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).
1818

src/peripheral/itm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ impl ITM {
251251
///
252252
/// See (coresight, B2.3.10).
253253
#[inline]
254-
pub fn has_software_lock(&self) -> bool {
254+
fn has_software_lock(&self) -> bool {
255255
self.lsr.read().sli()
256256
}
257257

258258
/// Checks whether the peripheral is locked.
259259
///
260260
/// See (coresight, B2.3.10).
261261
#[inline]
262-
pub fn locked(&self) -> bool {
262+
fn locked(&self) -> bool {
263263
self.has_software_lock() && self.lsr.read().slk()
264264
}
265265

0 commit comments

Comments
 (0)