Skip to content

Commit

Permalink
itm: ITMSettings -> ITMConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplt committed Jan 14, 2022
1 parent 1e85dd0 commit a9a6f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/peripheral/itm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub enum TimestampClkSrc {

/// Available settings for the ITM peripheral.
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
pub struct ITMSettings {
pub struct ITMConfiguration {
/// Whether to enable ITM.
pub enable: bool,
/// Whether DWT packets should be forwarded to ITM.
Expand Down Expand Up @@ -256,9 +256,9 @@ impl ITM {
self.tcr.read().busy()
}

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

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

0 comments on commit a9a6f55

Please sign in to comment.