@@ -178,40 +178,40 @@ pub struct ITMSettings {
178178#[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
179179pub enum ITMConfigurationError {
180180 /// Global timestamp generation is not supported on this target.
181- /// Request [GlobalTimestampOptions::Disabled] instead.
181+ /// Request [` GlobalTimestampOptions::Disabled` ] instead.
182182 ///
183- /// `ITM_TCR` register remains unchanged on this error.
183+ /// [ `ITM_TCR`](struct@Tcr) register remains unchanged on this error.
184184 GTS ,
185185 /// The requested timestamp clock source is not supported on this target.
186186 ///
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.
189189 TimestampClkSrc ,
190190 /// 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.
193193 ///
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.
196196 TSPrescale ,
197197}
198198
199199impl 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.
201201 #[ inline]
202202 pub fn unlock ( & mut self ) {
203203 // NOTE(unsafe) atomic write to a stateless, write-only register
204204 unsafe { self . lar . write ( 0xC5AC_CE55 ) }
205205 }
206206
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.
209209 #[ inline]
210210 pub fn busy ( & self ) -> bool {
211211 self . tcr . read ( ) . busy ( )
212212 }
213213
214- /// Configures the ITM with the passed [ITMSettings]. Returns `true`
214+ /// Configures the [` ITM`] with the passed [` ITMSettings` ]. Returns `true`
215215 /// if the configuration was successfully applied.
216216 #[ allow( clippy:: missing_inline_in_public_items) ]
217217 pub fn configure ( & mut self , settings : ITMSettings ) -> Result < ( ) , ITMConfigurationError > {
0 commit comments