Skip to content

Commit a9a6f55

Browse files
committed
itm: ITMSettings -> ITMConfiguration
1 parent 1e85dd0 commit a9a6f55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/peripheral/itm.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub enum TimestampClkSrc {
169169

170170
/// Available settings for the ITM peripheral.
171171
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
172-
pub struct ITMSettings {
172+
pub struct ITMConfiguration {
173173
/// Whether to enable ITM.
174174
pub enable: bool,
175175
/// Whether DWT packets should be forwarded to ITM.
@@ -256,9 +256,9 @@ impl ITM {
256256
self.tcr.read().busy()
257257
}
258258

259-
/// Tries to configure the [`ITM`] with the passed [`ITMSettings`].
259+
/// Tries to configure the [`ITM`] with the passed [`ITMConfiguration`].
260260
#[allow(clippy::missing_inline_in_public_items)]
261-
pub fn configure(&mut self, settings: ITMSettings) -> Result<(), ITMConfigurationError> {
261+
pub fn configure(&mut self, settings: ITMConfiguration) -> Result<(), ITMConfigurationError> {
262262
use ITMConfigurationError as Error;
263263

264264
// The ITM must be unlocked before we apply any changes.

0 commit comments

Comments
 (0)