Skip to content

Commit f7680d6

Browse files
committed
arduino-hal: Fix documentation link
Properly link the pins!() macro from the Pins structs.
1 parent a1db980 commit f7680d6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

arduino-hal/src/port/diecimila.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **Arduino Diecimila**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `A0`
1111
///

arduino-hal/src/port/leonardo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **Arduino Leonardo**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `D0` / `RX`
1111
///

arduino-hal/src/port/mega2560.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **Arduino Mega 2560**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `D0` / `RX0`
1111
///

arduino-hal/src/port/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! GPIO & Pin control.
22
//!
33
//! This module contains a [`Pins`] struct which represents all pins of the board. The [`Pins`]
4-
//! struct is most easily constructed using the [`arduino_hal::pins!()`][pins] macro:
4+
//! struct is most easily constructed using the [`arduino_hal::pins!()`][crate::pins] macro:
55
//!
66
//! ```no_run
77
//! let dp = arduino_hal::Peripherals::take().unwrap();

arduino-hal/src/port/promicro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **SparkFun ProMicro**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `RX`
1111
///

arduino-hal/src/port/trinket_pro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **Trinket Pro**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `A0`
1111
///

arduino-hal/src/port/uno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ avr_hal_generic::renamed_pins! {
55

66
/// Pins of the **Arduino Uno**.
77
///
8-
/// This struct is best initialized via the [`arduino_hal::pins!()`][pins] macro.
8+
/// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro.
99
pub struct Pins from atmega_hal::Pins {
1010
/// `A0`
1111
///

0 commit comments

Comments
 (0)