@@ -178,40 +178,40 @@ pub struct ITMSettings {
178
178
#[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
179
179
pub enum ITMConfigurationError {
180
180
/// Global timestamp generation is not supported on this target.
181
- /// Request [GlobalTimestampOptions::Disabled] instead.
181
+ /// Request [` GlobalTimestampOptions::Disabled` ] instead.
182
182
///
183
- /// `ITM_TCR` register remains unchanged on this error.
183
+ /// [ `ITM_TCR`](struct@Tcr) register remains unchanged on this error.
184
184
GTS ,
185
185
/// The requested timestamp clock source is not supported on this target.
186
186
///
187
- /// *NOTE*: `ITM_TCR. GTSFREQ` field has potentially been changed on
188
- /// this error.
187
+ /// *NOTE*: `GTSFREQ` in [`ITM_TCR`](struct@Tcr) field has
188
+ /// potentially been changed on this error.
189
189
TimestampClkSrc ,
190
190
/// The target does not implement the local timestamp prescaler.
191
- /// Request [LocalTimestampOptions::Disabled] or
192
- /// [LocalTimestampOptions::Disabled] instead.
191
+ /// Request [` LocalTimestampOptions::Disabled` ] or
192
+ /// [` LocalTimestampOptions::Disabled` ] instead.
193
193
///
194
- /// *NOTE*: `ITM_TCR.{ GTSFREQ, SWOENA}` fields have potentially
195
- /// changed on this error.
194
+ /// *NOTE*: `GTSFREQ` and ` SWOENA` in [`ITM_TCR`](struct@Tcr) fields
195
+ /// have potentially changed on this error.
196
196
TSPrescale ,
197
197
}
198
198
199
199
impl ITM {
200
- /// Removes the software lock on the ITM. Must be called before any other [ITM] functions.
200
+ /// Removes the software lock on the [` ITM`] . Must be called before any other [` ITM` ] functions.
201
201
#[ inline]
202
202
pub fn unlock ( & mut self ) {
203
203
// NOTE(unsafe) atomic write to a stateless, write-only register
204
204
unsafe { self . lar . write ( 0xC5AC_CE55 ) }
205
205
}
206
206
207
- /// Indicates whether the ITM is currently processing events.
208
- /// Returns `true` if ITM events are present and are being drained.
207
+ /// Indicates whether the [` ITM`] is currently processing events.
208
+ /// Returns `true` if [` ITM`] events are present and are being drained.
209
209
#[ inline]
210
210
pub fn busy ( & self ) -> bool {
211
211
self . tcr . read ( ) . busy ( )
212
212
}
213
213
214
- /// Configures the ITM with the passed [ITMSettings]. Returns `true`
214
+ /// Configures the [` ITM`] with the passed [` ITMSettings` ]. Returns `true`
215
215
/// if the configuration was successfully applied.
216
216
#[ allow( clippy:: missing_inline_in_public_items) ]
217
217
pub fn configure ( & mut self , settings : ITMSettings ) -> Result < ( ) , ITMConfigurationError > {
0 commit comments