Skip to content

Commit

Permalink
itm: document potentially altered fields on configuration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplt committed Jan 4, 2022
1 parent c77e175 commit dc46425
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/peripheral/itm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,20 @@ pub struct ITMSettings {
pub enum ITMConfigurationError {
/// Global timestamp generation is not supported on this target.
/// Request [GlobalTimestampOptions::Disabled] instead.
///
/// `ITM_TCR` register remains unchanged on this error.
GTS,
/// The requested timestamp clock source is not supported on this target.
///
/// *NOTE*: `ITM_TCR.GTSFREQ` field has potentially been changed on
/// this error.
TimestampClkSrc,
/// The target does not implement the local timestamp prescaler.
/// Request [LocalTimestampOptions::Disabled] or
/// [LocalTimestampOptions::Disabled] instead.
///
/// *NOTE*: `ITM_TCR.{GTSFREQ,SWOENA}` fields have potentially
/// changed on this error.
TSPrescale,
}

Expand Down

0 comments on commit dc46425

Please sign in to comment.