Skip to content

Commit 54081a0

Browse files
committed
fix and add to doctests
1 parent a6b01f8 commit 54081a0

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use core::ptr;
1111
///
1212
/// # Example
1313
///
14-
/// ```no_run
14+
/// ```norun
1515
/// use imxrt_iomuxc::{configure, Config, OpenDrain, PullKeeper};
1616
/// # use imxrt_iomuxc::imxrt1060::gpio_ad_b0::GPIO_AD_B0_03;
1717
///
@@ -227,7 +227,7 @@ impl Config {
227227
/// created using `zero()` will have the effect of writing *all* fields
228228
/// to the register. Those that are not set explicitly set are written as zero.
229229
///
230-
/// ```no_run
230+
/// ```norun
231231
/// # use imxrt_iomuxc::{Iomuxc, imxrt1060::gpio_ad_b0::GPIO_AD_B0_13};
232232
/// # let mut gpio_ad_b0_13 = unsafe { GPIO_AD_B0_13::new() };
233233
/// use imxrt_iomuxc::{
@@ -266,7 +266,7 @@ impl Config {
266266
///
267267
/// Any field that is is *not* specified in the configuration will not be touched.
268268
///
269-
/// ```no_run
269+
/// ```norun
270270
/// # use imxrt_iomuxc::{Iomuxc, imxrt1060::gpio_ad_b0::GPIO_AD_B0_13};
271271
/// # let mut gpio_ad_b0_13 = unsafe { GPIO_AD_B0_13::new() };
272272
/// use imxrt_iomuxc::{Config, configure, SlewRate, DriveStrength, Hysteresis};

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
//! - the user provides one TX and one RX pin
4747
//! - the modules for each pin match
4848
//!
49-
//! ```no_run
49+
//! ```norun
5050
//! use imxrt_iomuxc as iomuxc;
5151
//! use iomuxc::lpuart::{Pin, Tx, Rx};
5252
//!
@@ -118,7 +118,7 @@
118118
//! consider supporting an `unsafe` API to create the peripheral without requiring the strongly-typed pads.
119119
//! The API will expect that the user is responsible for manually configuring the type-erased pad.
120120
//!
121-
//! ```no_run
121+
//! ```norun
122122
//! use imxrt_iomuxc::{self as iomuxc, ErasedPad, lpuart::{Pin, Tx, Rx}};
123123
//! # use imxrt_iomuxc::imxrt1060::gpio_ad_b0::{GPIO_AD_B0_13, GPIO_AD_B0_12};
124124
//! # pub struct Lpuart<const N: u8>;

src/sai.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! Accept a transfer pin in a SAI driver. Change `TxDataSignal` to `RxDataSignal` for
66
//! the inverse operation.
77
//!
8-
//! ```
8+
//! ```norun
99
//! use imxrt_iomuxc::sai::{Pin, TxDataSignal};
1010
//! use imxrt_iomuxc::consts::{U1, Unsigned};
1111
//!

0 commit comments

Comments
 (0)