From d895b004345b3e19e9e0b6bad6bc69957793c743 Mon Sep 17 00:00:00 2001 From: astapleton Date: Thu, 5 Sep 2024 11:55:02 -0700 Subject: [PATCH] Alternate function doc strings --- src/gpio.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/gpio.rs b/src/gpio.rs index 5cd8dd2..20ddd98 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -208,21 +208,37 @@ pub enum Edge { RisingFalling, } +#[doc = "Alternate function AF0 (type state)"] pub type AF0 = Alternate<0, Otype>; +#[doc = "Alternate function AF1 (type state)"] pub type AF1 = Alternate<1, Otype>; +#[doc = "Alternate function AF2 (type state)"] pub type AF2 = Alternate<2, Otype>; +#[doc = "Alternate function AF3 (type state)"] pub type AF3 = Alternate<3, Otype>; +#[doc = "Alternate function AF4 (type state)"] pub type AF4 = Alternate<4, Otype>; +#[doc = "Alternate function AF5 (type state)"] pub type AF5 = Alternate<5, Otype>; +#[doc = "Alternate function AF6 (type state)"] pub type AF6 = Alternate<6, Otype>; +#[doc = "Alternate function AF7 (type state)"] pub type AF7 = Alternate<7, Otype>; +#[doc = "Alternate function AF8 (type state)"] pub type AF8 = Alternate<8, Otype>; +#[doc = "Alternate function AF9 (type state)"] pub type AF9 = Alternate<9, Otype>; +#[doc = "Alternate function AF10 (type state)"] pub type AF10 = Alternate<10, Otype>; +#[doc = "Alternate function AF11 (type state)"] pub type AF11 = Alternate<11, Otype>; +#[doc = "Alternate function AF12 (type state)"] pub type AF12 = Alternate<12, Otype>; +#[doc = "Alternate function AF13 (type state)"] pub type AF13 = Alternate<13, Otype>; +#[doc = "Alternate function AF14 (type state)"] pub type AF14 = Alternate<14, Otype>; +#[doc = "Alternate function AF15 (type state)"] pub type AF15 = Alternate<15, Otype>; /// Generic pin type