Skip to content

Commit e2c3fa5

Browse files
committed
Fix review comments
1 parent 8b9e273 commit e2c3fa5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/gpio.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@
1111
//! ```
1212
//!
1313
//! 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.
1515
//!
1616
//! To use a pin, first use the relevant `into_...` function in the [pin](gpioa/struct.PA0.html).
1717
//!
1818
//! ```rust
1919
//! let pa0 = gpioa.pa0.into_push_pull_output(&mut gpioa.moder, &mut gpioa.otyper);
2020
//! ```
2121
//!
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
2323
//! `embedded_hal`
24+
//!
25+
//! For a complete example, see [examples/toggle.rs]
26+
//!
27+
//! [InputPin]: ../prelude/trait._embedded_hal_digital_InputPin.html
28+
//! [OutputPin]: ../prelude/trait._embedded_hal_digital_OutputPin.html
29+
//! [examples/toggle.rs]: https://github.com/stm32-rs/stm32f3xx-hal/blob/v0.4.3/examples/toggle.rs
2430
2531
use core::convert::Infallible;
2632
use core::marker::PhantomData;

0 commit comments

Comments
 (0)