You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gpio.rs
+8-2
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,22 @@
11
11
//! ```
12
12
//!
13
13
//! The resulting [Parts](gpioa/struct.Parts.html) struct contains one field for each
14
-
//! pin, as well as some shared register.
14
+
//! pin, as well as some shared registers.
15
15
//!
16
16
//! To use a pin, first use the relevant `into_...` function in the [pin](gpioa/struct.PA0.html).
17
17
//!
18
18
//! ```rust
19
19
//! let pa0 = gpioa.pa0.into_push_pull_output(&mut gpioa.moder, &mut gpioa.otyper);
20
20
//! ```
21
21
//!
22
-
//! And finally, you can use the functions from the [InputPin](../prelude/trait._embedded_hal_digital_InputPin.html) or [OutputPin](../prelude/trait._embedded_hal_digital_OutputPin.html) traits in
22
+
//! And finally, you can use the functions from the [InputPin] or [OutputPin] traits in
23
23
//! `embedded_hal`
24
+
//!
25
+
//! For a complete example, see [examples/toggle.rs]
0 commit comments