[][src]Macro drone_stm32_map_periph_gpio::periph_gpio_h4

macro_rules! periph_gpio_h4 {
    periph::map! {
            #[doc = $pin_macro_doc]
            pub macro $pin_macro;

            #[doc = $pin_ty_doc]
            pub struct $pin_ty;

            impl GpioPinMap for $pin_ty {
                type GpioHeadMap = super::head::$port_ty;
            }

            drone_stm32_map_pieces::reg;
            crate::pin;

            GPIO {
                $gpio;
                #[cfg(any(
                    feature = "stm32l4x1",
                    feature = "stm32l4x2",
                    feature = "stm32l4x3",
                    feature = "stm32l4x5",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                AFR {
                    $afr_path Shared;
                    AFR { $afr_ty }
                }
                #[cfg(any(
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                ASCR {
                    ASCR Shared;
                    ASC { $($asc_ty $ascr_option)* }
                }
                #[cfg(any(
                    feature = "stm32f100",
                    feature = "stm32f101",
                    feature = "stm32f102",
                    feature = "stm32f103",
                    feature = "stm32f107",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                BRR {
                    BRR Shared;
                    BR { $br_ty }
                }
                BSRR {
                    BSRR Shared;
                    BR { $br_ty }
                    BS { $bs_ty }
                }
                #[cfg(any(
                    feature = "stm32f100",
                    feature = "stm32f101",
                    feature = "stm32f102",
                    feature = "stm32f103",
                    feature = "stm32f107"
                ))]
                CR {
                    $cr_path Shared;
                    CNF { $cnf_ty }
                    MODE { $mode_ty }
                }
                IDR {
                    IDR Shared;
                    IDR { $idr_ty }
                }
                LCKR {
                    LCKR Shared;
                    LCK { $lck_ty }
                }
                #[cfg(any(
                    feature = "stm32l4x1",
                    feature = "stm32l4x2",
                    feature = "stm32l4x3",
                    feature = "stm32l4x5",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                MODER {
                    MODER Shared;
                    MODER { $moder_ty }
                }
                ODR {
                    ODR Shared;
                    ODR { $odr_ty }
                }
                #[cfg(any(
                    feature = "stm32l4x1",
                    feature = "stm32l4x2",
                    feature = "stm32l4x3",
                    feature = "stm32l4x5",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                OSPEEDR {
                    OSPEEDR Shared;
                    OSPEEDR { $ospeedr_ty }
                }
                #[cfg(any(
                    feature = "stm32l4x1",
                    feature = "stm32l4x2",
                    feature = "stm32l4x3",
                    feature = "stm32l4x5",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                OTYPER {
                    OTYPER Shared;
                    OT { $ot_ty }
                }
                #[cfg(any(
                    feature = "stm32l4x1",
                    feature = "stm32l4x2",
                    feature = "stm32l4x3",
                    feature = "stm32l4x5",
                    feature = "stm32l4x6",
                    feature = "stm32l4r5",
                    feature = "stm32l4r7",
                    feature = "stm32l4r9",
                    feature = "stm32l4s5",
                    feature = "stm32l4s7",
                    feature = "stm32l4s9"
                ))]
                PUPDR {
                    PUPDR Shared;
                    PUPDR { $pupdr_ty }
                }
            }
        } => { ... };
}

Extracts GPIO port H pin 4 register tokens.