Skip to content

Commit

Permalink
Link to the chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 6, 2024
1 parent 1bf17ba commit 9bc9a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ pub enum DriveStrength {
///
/// The different variants correspond to different functionality depending on
/// the chip and the specific pin. For more information, refer to your chip's
#[doc = crate::trm_markdown_link!()]
/// .
#[doc = crate::trm_markdown_link!("iomuxgpio")]
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum AlternateFunction {
Expand Down
3 changes: 3 additions & 0 deletions esp-hal/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ macro_rules! trm_markdown_link {
() => {
concat!("[Technical Reference Manual](", $crate::trm_link!(), ")")
};
($anchor:literal) => {
concat!("[Technical Reference Manual](", $crate::trm_link!(), "#", $anchor, ")")
};
}

#[doc(hidden)]
Expand Down

0 comments on commit 9bc9a0c

Please sign in to comment.