From 684e7bd8c1a1f037ef3b0a6d63609de06bea043b Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 15 Oct 2019 09:15:28 -0700 Subject: [PATCH 01/38] Generate AF4-AF7 and AF14 functions for pins via macro rather than individually. --- src/gpio.rs | 2019 +++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 1650 insertions(+), 369 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index af04b5029..b49061914 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -97,7 +97,9 @@ macro_rules! gpio { gpio_mapped_iorst: $iopxrst:ident, partially_erased_pin: $PXx:ident, pins: [ - $($PXi:ident: ($pxi:ident, $i:expr, $MODE:ty, $AFR:ident),)+ + $($PXi:ident: ($pxi:ident, $i:expr, $MODE:ty, $AFR:ident, [ + $($AFi:ty: ($into_afi:ident, $afi:expr,),)+ + ]),)+ ], },)+ ]) => { @@ -354,142 +356,29 @@ macro_rules! gpio { } impl $PXi { - /// Configures the pin to serve as alternate function 4 (AF4) - pub fn into_af4( - self, - moder: &mut MODER, - afr: &mut $AFR, - ) -> $PXi { - let offset = 2 * $i; - - // alternate function mode - let mode = 0b10; - moder.moder().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) - }); - - let af = 4; - let offset = 4 * ($i % 8); - afr.afr().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b1111 << offset)) | (af << offset)) - }); - - $PXi { _mode: PhantomData } - } - - /// Configures the pin to serve as alternate function 5 (AF5) - pub fn into_af5( - self, - moder: &mut MODER, - afr: &mut $AFR, - ) -> $PXi { - let offset = 2 * $i; - - // alternate function mode - let mode = 0b10; - moder.moder().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) - }); - - let af = 5; - let offset = 4 * ($i % 8); - afr.afr().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b1111 << offset)) | (af << offset)) - }); - - $PXi { _mode: PhantomData } - } - - /// Configures the pin to serve as alternate function 6 (AF6) - pub fn into_af6( - self, - moder: &mut MODER, - afr: &mut $AFR, - ) -> $PXi { - let offset = 2 * $i; - - // alternate function mode - let mode = 0b10; - moder.moder().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) - }); - - let af = 6; - let offset = 4 * ($i % 8); - afr.afr().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b1111 << offset)) | (af << offset)) - }); - - $PXi { _mode: PhantomData } - } - - /// Configures the pin to serve as alternate function 7 (AF7) - pub fn into_af7( - self, - moder: &mut MODER, - afr: &mut $AFR, - ) -> $PXi { - let offset = 2 * $i; - - // alternate function mode - let mode = 0b10; - moder.moder().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) - }); - - let af = 7; - let offset = 4 * ($i % 8); - - afr.afr().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b1111 << offset)) | (af << offset)) - }); - - $PXi { _mode: PhantomData } - } - - /// Configures the pin to serve as alternate function 14 (AF14) - pub fn into_af14( - self, - moder: &mut MODER, - afr: &mut $AFR, - ) -> $PXi { - let offset = 2 * $i; - - // alternate function mode - let mode = 0b10; - moder.moder().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) - }); - - let af = 14; - let offset = 4 * ($i % 8); - afr.afr().modify(|r, w| unsafe { - w.bits((r.bits() & !(0b1111 << offset)) | (af << offset)) - }); - - $PXi { _mode: PhantomData } - } - - /// Configures the pin to operate as a floating input pin - pub fn into_floating_input( - self, - moder: &mut MODER, - pupdr: &mut PUPDR, - ) -> $PXi> { - let offset = 2 * $i; - - // input mode - moder - .moder() - .modify(|r, w| unsafe { w.bits(r.bits() & !(0b11 << offset)) }); - - // no pull-up or pull-down - pupdr - .pupdr() - .modify(|r, w| unsafe { w.bits(r.bits() & !(0b11 << offset)) }); - - $PXi { _mode: PhantomData } - } + $( + /// Configures the pin to serve as alternate function 4 ($AFx) + pub fn $into_afi( + self, + moder: &mut MODER, + afr: &mut $AFR, + ) -> $PXi<$AFi> { + let offset = 2 * $i; + + // alternate function mode + let mode = 0b10; + moder.moder().modify(|r, w| unsafe { + w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) + }); + + let offset = 4 * ($i % 8); + afr.afr().modify(|r, w| unsafe { + w.bits((r.bits() & !(0b1111 << offset)) | ($afi << offset)) + }); + + $PXi { _mode: PhantomData } + } + )+ /// Configures the pin to operate as a pulled down input pin pub fn into_pull_down_input( @@ -677,22 +566,118 @@ gpio!([ gpio_mapped_iorst: ioparst, partially_erased_pin: PAx, pins: [ - PA0: (pa0, 0, Input, AFRL), - PA1: (pa1, 1, Input, AFRL), - PA2: (pa2, 2, Input, AFRL), - PA3: (pa3, 3, Input, AFRL), - PA4: (pa4, 4, Input, AFRL), - PA5: (pa5, 5, Input, AFRL), - PA6: (pa6, 6, Input, AFRL), - PA7: (pa7, 7, Input, AFRL), - PA8: (pa8, 8, Input, AFRH), - PA9: (pa9, 9, Input, AFRH), - PA10: (pa10, 10, Input, AFRH), - PA11: (pa11, 11, Input, AFRH), - PA12: (pa12, 12, Input, AFRH), - PA13: (pa13, 13, Input, AFRH), - PA14: (pa14, 14, Input, AFRH), - PA15: (pa15, 15, Input, AFRH), + PA0: (pa0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA1: (pa1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA2: (pa2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA3: (pa3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA4: (pa4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA5: (pa5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA6: (pa6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA7: (pa7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA8: (pa8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA9: (pa9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA10: (pa10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA11: (pa11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA12: (pa12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA13: (pa13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA14: (pa14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PA15: (pa15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -714,22 +699,118 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL), - PB1: (pb1, 1, Input, AFRL), - PB2: (pb2, 2, Input, AFRL), - PB3: (pb3, 3, Input, AFRL), - PB4: (pb4, 4, Input, AFRL), - PB5: (pb5, 5, Input, AFRL), - PB6: (pb6, 6, Input, AFRL), - PB7: (pb7, 7, Input, AFRL), - PB8: (pb8, 8, Input, AFRH), - PB9: (pb9, 9, Input, AFRH), - PB10: (pb10, 10, Input, AFRH), - PB11: (pb11, 11, Input, AFRH), - PB12: (pb12, 12, Input, AFRH), - PB13: (pb13, 13, Input, AFRH), - PB14: (pb14, 14, Input, AFRH), - PB15: (pb15, 15, Input, AFRH), + PB0: (pb0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB1: (pb1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB2: (pb2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB3: (pb3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB4: (pb4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB5: (pb5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB6: (pb6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB7: (pb7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB8: (pb8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB9: (pb9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB10: (pb10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB11: (pb11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB12: (pb12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB13: (pb13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB14: (pb14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB15: (pb15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -743,19 +824,97 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL), - PB1: (pb1, 1, Input, AFRL), - PB2: (pb2, 2, Input, AFRL), - PB3: (pb3, 3, Input, AFRL), - PB4: (pb4, 4, Input, AFRL), - PB5: (pb5, 5, Input, AFRL), - PB6: (pb6, 6, Input, AFRL), - PB7: (pb7, 7, Input, AFRL), - PB8: (pb8, 8, Input, AFRH), - PB9: (pb9, 9, Input, AFRH), - PB10: (pb10, 10, Input, AFRH), - PB14: (pb14, 14, Input, AFRH), - PB15: (pb15, 15, Input, AFRH), + PB0: (pb0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB1: (pb1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB2: (pb2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB3: (pb3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB4: (pb4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB5: (pb5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB6: (pb6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB7: (pb7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB8: (pb8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB9: (pb9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB10: (pb10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB14: (pb14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PB15: (pb15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -776,22 +935,118 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL), - PC1: (pc1, 1, Input, AFRL), - PC2: (pc2, 2, Input, AFRL), - PC3: (pc3, 3, Input, AFRL), - PC4: (pc4, 4, Input, AFRL), - PC5: (pc5, 5, Input, AFRL), - PC6: (pc6, 6, Input, AFRL), - PC7: (pc7, 7, Input, AFRL), - PC8: (pc8, 8, Input, AFRH), - PC9: (pc9, 9, Input, AFRH), - PC10: (pc10, 10, Input, AFRH), - PC11: (pc11, 11, Input, AFRH), - PC12: (pc12, 12, Input, AFRH), - PC13: (pc13, 13, Input, AFRH), - PC14: (pc14, 14, Input, AFRH), - PC15: (pc15, 15, Input, AFRH), + PC0: (pc0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC1: (pc1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC2: (pc2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC3: (pc3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC4: (pc4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC5: (pc5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC6: (pc6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC7: (pc7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC8: (pc8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC9: (pc9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC10: (pc10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC11: (pc11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC12: (pc12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC13: (pc13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC14: (pc14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC15: (pc15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -806,22 +1061,118 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL), - PC1: (pc1, 1, Input, AFRL), - PC2: (pc2, 2, Input, AFRL), - PC3: (pc3, 3, Input, AFRL), - PC4: (pc4, 4, Input, AFRL), - PC5: (pc5, 5, Input, AFRL), - PC6: (pc6, 6, Input, AFRL), - PC7: (pc7, 7, Input, AFRL), - PC8: (pc8, 8, Input, AFRH), - PC9: (pc9, 9, Input, AFRH), - PC10: (pc10, 10, Input, AFRH), - PC11: (pc11, 11, Input, AFRH), - PC12: (pc12, 12, Input, AFRH), - PC13: (pc13, 13, Input, AFRH), - PC14: (pc14, 14, Input, AFRH), - PC15: (pc15, 15, Input, AFRH), + PC0: (pc0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC1: (pc1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC2: (pc2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC3: (pc3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC4: (pc4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC5: (pc5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC6: (pc6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC7: (pc7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC8: (pc8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC9: (pc9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC10: (pc10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC11: (pc11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC12: (pc12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC13: (pc13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC14: (pc14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PC15: (pc15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -835,7 +1186,13 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD2: (pd2, 2, Input, AFRL), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -849,22 +1206,118 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL), - PD1: (pd1, 1, Input, AFRL), - PD2: (pd2, 2, Input, AFRL), - PD3: (pd3, 3, Input, AFRL), - PD4: (pd4, 4, Input, AFRL), - PD5: (pd5, 5, Input, AFRL), - PD6: (pd6, 6, Input, AFRL), - PD7: (pd7, 7, Input, AFRL), - PD8: (pd8, 8, Input, AFRH), - PD9: (pd9, 9, Input, AFRH), - PD10: (pd10, 10, Input, AFRH), - PD11: (pd11, 11, Input, AFRH), - PD12: (pd12, 12, Input, AFRH), - PD13: (pd13, 13, Input, AFRH), - PD14: (pd14, 14, Input, AFRH), - PD15: (pd15, 15, Input, AFRH), + PD0: (pd0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD1: (pd1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD3: (pd3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD4: (pd4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD5: (pd5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD6: (pd6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD7: (pd7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD8: (pd8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD9: (pd9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD10: (pd10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD11: (pd11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD12: (pd12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD13: (pd13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD14: (pd14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD15: (pd15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -885,22 +1338,118 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL), - PD1: (pd1, 1, Input, AFRL), - PD2: (pd2, 2, Input, AFRL), - PD3: (pd3, 3, Input, AFRL), - PD4: (pd4, 4, Input, AFRL), - PD5: (pd5, 5, Input, AFRL), - PD6: (pd6, 6, Input, AFRL), - PD7: (pd7, 7, Input, AFRL), - PD8: (pd8, 8, Input, AFRH), - PD9: (pd9, 9, Input, AFRH), - PD10: (pd10, 10, Input, AFRH), - PD11: (pd11, 11, Input, AFRH), - PD12: (pd12, 12, Input, AFRH), - PD13: (pd13, 13, Input, AFRH), - PD14: (pd14, 14, Input, AFRH), - PD15: (pd15, 15, Input, AFRH), + PD0: (pd0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD1: (pd1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD3: (pd3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD4: (pd4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD5: (pd5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD6: (pd6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD7: (pd7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD8: (pd8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD9: (pd9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD10: (pd10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD11: (pd11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD12: (pd12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD13: (pd13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD14: (pd14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PD15: (pd15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -915,22 +1464,118 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL), - PE1: (pe1, 1, Input, AFRL), - PE2: (pe2, 2, Input, AFRL), - PE3: (pe3, 3, Input, AFRL), - PE4: (pe4, 4, Input, AFRL), - PE5: (pe5, 5, Input, AFRL), - PE6: (pe6, 6, Input, AFRL), - PE7: (pe7, 7, Input, AFRL), - PE8: (pe8, 8, Input, AFRH), - PE9: (pe9, 9, Input, AFRH), - PE10: (pe10, 10, Input, AFRH), - PE11: (pe11, 11, Input, AFRH), - PE12: (pe12, 12, Input, AFRH), - PE13: (pe13, 13, Input, AFRH), - PE14: (pe14, 14, Input, AFRH), - PE15: (pe15, 15, Input, AFRH), + PE0: (pe0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE1: (pe1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE2: (pe2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE3: (pe3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE4: (pe4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE5: (pe5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE6: (pe6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE7: (pe7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE8: (pe8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE9: (pe9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE10: (pe10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE11: (pe11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE12: (pe12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE13: (pe13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE14: (pe14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE15: (pe15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -949,22 +1594,118 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL), - PE1: (pe1, 1, Input, AFRL), - PE2: (pe2, 2, Input, AFRL), - PE3: (pe3, 3, Input, AFRL), - PE4: (pe4, 4, Input, AFRL), - PE5: (pe5, 5, Input, AFRL), - PE6: (pe6, 6, Input, AFRL), - PE7: (pe7, 7, Input, AFRL), - PE8: (pe8, 8, Input, AFRH), - PE9: (pe9, 9, Input, AFRH), - PE10: (pe10, 10, Input, AFRH), - PE11: (pe11, 11, Input, AFRH), - PE12: (pe12, 12, Input, AFRH), - PE13: (pe13, 13, Input, AFRH), - PE14: (pe14, 14, Input, AFRH), - PE15: (pe15, 15, Input, AFRH), + PE0: (pe0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE1: (pe1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE2: (pe2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE3: (pe3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE4: (pe4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE5: (pe5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE6: (pe6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE7: (pe7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE8: (pe8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE9: (pe9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE10: (pe10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE11: (pe11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE12: (pe12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE13: (pe13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE14: (pe14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PE15: (pe15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -978,8 +1719,20 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -993,14 +1746,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), - PF2: (pf2, 2, Input, AFRL), - PF4: (pf4, 4, Input, AFRL), - PF5: (pf5, 5, Input, AFRL), - PF6: (pf6, 6, Input, AFRL), - PF9: (pf9, 9, Input, AFRH), - PF10: (pf10, 10, Input, AFRH), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1014,14 +1815,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), - PF2: (pf2, 2, Input, AFRL), - PF4: (pf4, 4, Input, AFRL), - PF5: (pf5, 5, Input, AFRL), - PF6: (pf6, 6, Input, AFRL), - PF9: (pf9, 9, Input, AFRH), - PF10: (pf10, 10, Input, AFRH), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1035,22 +1884,118 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), - PF2: (pf2, 2, Input, AFRL), - PF3: (pf3, 3, Input, AFRL), - PF4: (pf4, 4, Input, AFRL), - PF5: (pf5, 5, Input, AFRL), - PF6: (pf6, 6, Input, AFRL), - PF7: (pf7, 7, Input, AFRL), - PF8: (pf8, 8, Input, AFRH), - PF9: (pf9, 9, Input, AFRH), - PF10: (pf10, 10, Input, AFRH), - PF11: (pf11, 11, Input, AFRH), - PF12: (pf12, 12, Input, AFRH), - PF13: (pf13, 13, Input, AFRH), - PF14: (pf14, 14, Input, AFRH), - PF15: (pf15, 15, Input, AFRH), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF3: (pf3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF8: (pf8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF11: (pf11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF12: (pf12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF13: (pf13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF14: (pf14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF15: (pf15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1064,14 +2009,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), - PF2: (pf2, 2, Input, AFRL), - PF4: (pf4, 4, Input, AFRL), - PF6: (pf6, 6, Input, AFRL), - PF7: (pf7, 7, Input, AFRL), - PF9: (pf9, 9, Input, AFRH), - PF10: (pf10, 10, Input, AFRH), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1089,22 +2082,118 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL), - PF1: (pf1, 1, Input, AFRL), - PF2: (pf2, 2, Input, AFRL), - PF3: (pf3, 3, Input, AFRL), - PF4: (pf4, 4, Input, AFRL), - PF5: (pf5, 5, Input, AFRL), - PF6: (pf6, 6, Input, AFRL), - PF7: (pf7, 7, Input, AFRL), - PF8: (pf8, 8, Input, AFRH), - PF9: (pf9, 9, Input, AFRH), - PF10: (pf10, 10, Input, AFRH), - PF11: (pf11, 11, Input, AFRH), - PF12: (pf12, 12, Input, AFRH), - PF13: (pf13, 13, Input, AFRH), - PF14: (pf14, 14, Input, AFRH), - PF15: (pf15, 15, Input, AFRH), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF3: (pf3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF8: (pf8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF11: (pf11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF12: (pf12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF13: (pf13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF14: (pf14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PF15: (pf15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1118,22 +2207,118 @@ gpio!([ gpio_mapped_iorst: iopgrst, partially_erased_pin: PGx, pins: [ - PG0: (pg0, 0, Input, AFRL), - PG1: (pg1, 1, Input, AFRL), - PG2: (pg2, 2, Input, AFRL), - PG3: (pg3, 3, Input, AFRL), - PG4: (pg4, 4, Input, AFRL), - PG5: (pg5, 5, Input, AFRL), - PG6: (pg6, 6, Input, AFRL), - PG7: (pg7, 7, Input, AFRL), - PG8: (pg8, 8, Input, AFRH), - PG9: (pg9, 9, Input, AFRH), - PG10: (pg10, 10, Input, AFRH), - PG11: (pg11, 11, Input, AFRH), - PG12: (pg12, 12, Input, AFRH), - PG13: (pg13, 13, Input, AFRH), - PG14: (pg14, 14, Input, AFRH), - PG15: (pg15, 15, Input, AFRH), + PG0: (pg0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG1: (pg1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG2: (pg2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG3: (pg3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG4: (pg4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG5: (pg5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG6: (pg6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG7: (pg7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG8: (pg8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG9: (pg9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG10: (pg10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG11: (pg11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG12: (pg12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG13: (pg13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG14: (pg14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PG15: (pg15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, { @@ -1147,22 +2332,118 @@ gpio!([ gpio_mapped_iorst: iophrst, partially_erased_pin: PHx, pins: [ - PH0: (ph0, 0, Input, AFRL), - PH1: (ph1, 1, Input, AFRL), - PH2: (ph2, 2, Input, AFRL), - PH3: (ph3, 3, Input, AFRL), - PH4: (ph4, 4, Input, AFRL), - PH5: (ph5, 5, Input, AFRL), - PH6: (ph6, 6, Input, AFRL), - PH7: (ph7, 7, Input, AFRL), - PH8: (ph8, 8, Input, AFRH), - PH9: (ph9, 9, Input, AFRH), - PH10: (ph10, 10, Input, AFRH), - PH11: (ph11, 11, Input, AFRH), - PH12: (ph12, 12, Input, AFRH), - PH13: (ph13, 13, Input, AFRH), - PH14: (ph14, 14, Input, AFRH), - PH15: (ph15, 15, Input, AFRH), + PH0: (ph0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH1: (ph1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH2: (ph2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH3: (ph3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH4: (ph4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH5: (ph5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH6: (ph6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH7: (ph7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH8: (ph8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH9: (ph9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH10: (ph10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH11: (ph11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH12: (ph12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH13: (ph13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH14: (ph14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), + PH15: (ph15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ]), ], }, ]); From 60c19ffad00510c3ccc60b3e1fd90ed8777e909d Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Wed, 16 Oct 2019 20:26:15 -0700 Subject: [PATCH 02/38] Allow all alternate functions for each relevant device for pin A0. --- src/gpio.rs | 2398 ++++++++++++++++++++++++++------------------------- 1 file changed, 1235 insertions(+), 1163 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index b49061914..ad0d7d868 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -98,7 +98,7 @@ macro_rules! gpio { partially_erased_pin: $PXx:ident, pins: [ $($PXi:ident: ($pxi:ident, $i:expr, $MODE:ty, $AFR:ident, [ - $($AFi:ty: ($into_afi:ident, $afi:expr,),)+ + $($AFi:ty: ($into_afi:ident, $afi:expr, [$($afi_devices:expr,)*],),)+ ]),)+ ], },)+ @@ -197,8 +197,10 @@ macro_rules! gpio { use crate::stm32::{$gpioy, $GPIOX}; use crate::rcc::AHB; + #[allow(unused_imports)] + use super::{AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF14, AF15}; use super::{ - AF4, AF5, AF6, AF7, AF14, Floating, GpioExt, Input, OpenDrain, Output, + Floating, GpioExt, Input, OpenDrain, Output, PullDown, PullUp, PushPull, PXx, Gpio, }; @@ -357,7 +359,10 @@ macro_rules! gpio { impl $PXi { $( - /// Configures the pin to serve as alternate function 4 ($AFx) + /// Configures the pin to serve as alternate function $afi ($AFx) + #[cfg(any( + $(feature = $afi_devices,)* + ))] pub fn $into_afi( self, moder: &mut MODER, @@ -567,116 +572,183 @@ gpio!([ partially_erased_pin: PAx, pins: [ PA0: (pa0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + // TODO: should this be separated into common/device specific pins? + AF1: (into_af1, 1, [ + "stm32f301", + "stm32f318", + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f334", + "stm32f328", + "stm32f358", + "stm32f398", + ],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, [ + "stm32f301", + "stm32f318", + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f334", + "stm32f328", + "stm32f358", + "stm32f398", + ],), + AF8: (into_af8, 8, [ + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f358", + "stm32f398", + ],), + AF7: (into_af7, 7, [ + "stm32f301", + "stm32f318", + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f334", + "stm32f328", + "stm32f358", + "stm32f398", + ],), + AF9: (into_af9, 9, [ + "stm32f303", + "stm32f358", + "stm32f398", + ],), + AF10: (into_af10, 10, [ + "stm32f303", + "stm32f358", + "stm32f398", + ],), + AF11: (into_af11, 11, [ + "stm32f373", + "stm32f378", + ],), + AF15: (into_af15, 15, [ + "stm32f301", + "stm32f318", + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f334", + "stm32f328", + "stm32f358", + "stm32f398", + ],), ]), PA1: (pa1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA2: (pa2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA3: (pa3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA4: (pa4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA5: (pa5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA6: (pa6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA7: (pa7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA8: (pa8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA9: (pa9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA10: (pa10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA11: (pa11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA12: (pa12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA13: (pa13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA14: (pa14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PA15: (pa15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -700,116 +772,116 @@ gpio!([ partially_erased_pin: PBx, pins: [ PB0: (pb0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB1: (pb1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB2: (pb2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB3: (pb3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB4: (pb4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB5: (pb5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB6: (pb6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB7: (pb7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB8: (pb8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB9: (pb9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB10: (pb10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB11: (pb11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB12: (pb12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB13: (pb13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB14: (pb14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB15: (pb15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -825,95 +897,95 @@ gpio!([ partially_erased_pin: PBx, pins: [ PB0: (pb0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB1: (pb1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB2: (pb2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB3: (pb3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB4: (pb4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB5: (pb5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB6: (pb6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB7: (pb7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB8: (pb8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB9: (pb9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB10: (pb10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB14: (pb14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PB15: (pb15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -936,116 +1008,116 @@ gpio!([ partially_erased_pin: PCx, pins: [ PC0: (pc0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC1: (pc1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC2: (pc2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC3: (pc3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC4: (pc4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC5: (pc5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC6: (pc6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC7: (pc7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC8: (pc8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC9: (pc9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC10: (pc10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC11: (pc11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC12: (pc12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC13: (pc13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC14: (pc14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC15: (pc15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1062,116 +1134,116 @@ gpio!([ partially_erased_pin: PCx, pins: [ PC0: (pc0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC1: (pc1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC2: (pc2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC3: (pc3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC4: (pc4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC5: (pc5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC6: (pc6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC7: (pc7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC8: (pc8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC9: (pc9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC10: (pc10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC11: (pc11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC12: (pc12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC13: (pc13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC14: (pc14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PC15: (pc15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1187,11 +1259,11 @@ gpio!([ partially_erased_pin: PDx, pins: [ PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1207,116 +1279,116 @@ gpio!([ partially_erased_pin: PDx, pins: [ PD0: (pd0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD1: (pd1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD3: (pd3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD4: (pd4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD5: (pd5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD6: (pd6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD7: (pd7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD8: (pd8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD9: (pd9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD10: (pd10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD11: (pd11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD12: (pd12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD13: (pd13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD14: (pd14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD15: (pd15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1339,116 +1411,116 @@ gpio!([ partially_erased_pin: PDx, pins: [ PD0: (pd0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD1: (pd1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD3: (pd3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD4: (pd4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD5: (pd5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD6: (pd6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD7: (pd7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD8: (pd8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD9: (pd9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD10: (pd10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD11: (pd11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD12: (pd12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD13: (pd13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD14: (pd14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PD15: (pd15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1465,116 +1537,116 @@ gpio!([ partially_erased_pin: PEx, pins: [ PE0: (pe0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE1: (pe1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE2: (pe2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE3: (pe3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE4: (pe4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE5: (pe5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE6: (pe6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE7: (pe7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE8: (pe8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE9: (pe9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE10: (pe10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE11: (pe11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE12: (pe12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE13: (pe13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE14: (pe14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE15: (pe15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1595,116 +1667,116 @@ gpio!([ partially_erased_pin: PEx, pins: [ PE0: (pe0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE1: (pe1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE2: (pe2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE3: (pe3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE4: (pe4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE5: (pe5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE6: (pe6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE7: (pe7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE8: (pe8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE9: (pe9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE10: (pe10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE11: (pe11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE12: (pe12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE13: (pe13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE14: (pe14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PE15: (pe15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1720,18 +1792,18 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1747,60 +1819,60 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1816,60 +1888,60 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -1885,116 +1957,116 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF3: (pf3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF8: (pf8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF11: (pf11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF12: (pf12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF13: (pf13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF14: (pf14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF15: (pf15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -2010,60 +2082,60 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -2083,116 +2155,116 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF3: (pf3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF8: (pf8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF11: (pf11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF12: (pf12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF13: (pf13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF14: (pf14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PF15: (pf15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -2208,116 +2280,116 @@ gpio!([ partially_erased_pin: PGx, pins: [ PG0: (pg0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG1: (pg1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG2: (pg2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG3: (pg3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG4: (pg4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG5: (pg5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG6: (pg6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG7: (pg7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG8: (pg8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG9: (pg9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG10: (pg10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG11: (pg11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG12: (pg12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG13: (pg13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG14: (pg14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PG15: (pg15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, @@ -2333,116 +2405,116 @@ gpio!([ partially_erased_pin: PHx, pins: [ PH0: (ph0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH1: (ph1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH2: (ph2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH3: (ph3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH4: (ph4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH5: (ph5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH6: (ph6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH7: (ph7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH8: (ph8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH9: (ph9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH10: (ph10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH11: (ph11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH12: (ph12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH13: (ph13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH14: (ph14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), PH15: (ph15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4, [],), + AF5: (into_af5, 5, [],), + AF6: (into_af6, 6, [],), + AF7: (into_af7, 7, [],), + AF14: (into_af14, 14, [],), ]), ], }, From ae1137cd9295dd586769ba4398cc3bdcca1561eb Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Wed, 16 Oct 2019 20:32:08 -0700 Subject: [PATCH 03/38] Allow a shorthand for Alternate Functions that are common across all devices. --- src/gpio.rs | 546 +++++++++++++++++++++++++--------------------------- 1 file changed, 264 insertions(+), 282 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index ad0d7d868..cc93464b3 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -98,7 +98,9 @@ macro_rules! gpio { partially_erased_pin: $PXx:ident, pins: [ $($PXi:ident: ($pxi:ident, $i:expr, $MODE:ty, $AFR:ident, [ - $($AFi:ty: ($into_afi:ident, $afi:expr, [$($afi_devices:expr,)*],),)+ + $($AFi_common:ty: ($into_afi_common:ident, $afi_common:expr,),)* + ], [ + $($AFi:ty: ($into_afi:ident, $afi:expr, [$($afi_devices:expr,)*],),)* ]),)+ ], },)+ @@ -358,6 +360,30 @@ macro_rules! gpio { } impl $PXi { + $( + /// Configures the pin to serve as alternate function $afi_common ($AFx_common) + pub fn $into_afi_common( + self, + moder: &mut MODER, + afr: &mut $AFR, + ) -> $PXi<$AFi_common> { + let offset = 2 * $i; + + // alternate function mode + let mode = 0b10; + moder.moder().modify(|r, w| unsafe { + w.bits((r.bits() & !(0b11 << offset)) | (mode << offset)) + }); + + let offset = 4 * ($i % 8); + afr.afr().modify(|r, w| unsafe { + w.bits((r.bits() & !(0b1111 << offset)) | ($afi_common << offset)) + }); + + $PXi { _mode: PhantomData } + } + )* + $( /// Configures the pin to serve as alternate function $afi ($AFx) #[cfg(any( @@ -383,7 +409,7 @@ macro_rules! gpio { $PXi { _mode: PhantomData } } - )+ + )* /// Configures the pin to operate as a pulled down input pin pub fn into_pull_down_input( @@ -572,32 +598,12 @@ gpio!([ partially_erased_pin: PAx, pins: [ PA0: (pa0, 0, Input, AFRL, [ - // TODO: should this be separated into common/device specific pins? - AF1: (into_af1, 1, [ - "stm32f301", - "stm32f318", - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f334", - "stm32f328", - "stm32f358", - "stm32f398", - ],), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF3: (into_af3, 3, [ - "stm32f301", - "stm32f318", - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f334", - "stm32f328", - "stm32f358", - "stm32f398", - ],), AF8: (into_af8, 8, [ "stm32f302", "stm32f303", @@ -606,18 +612,6 @@ gpio!([ "stm32f358", "stm32f398", ],), - AF7: (into_af7, 7, [ - "stm32f301", - "stm32f318", - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f334", - "stm32f328", - "stm32f358", - "stm32f398", - ],), AF9: (into_af9, 9, [ "stm32f303", "stm32f358", @@ -632,118 +626,106 @@ gpio!([ "stm32f373", "stm32f378", ],), - AF15: (into_af15, 15, [ - "stm32f301", - "stm32f318", - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f334", - "stm32f328", - "stm32f358", - "stm32f398", - ],), ]), - PA1: (pa1, 1, Input, AFRL, [ + PA1: (pa1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA2: (pa2, 2, Input, AFRL, [ + PA2: (pa2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA3: (pa3, 3, Input, AFRL, [ + PA3: (pa3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA4: (pa4, 4, Input, AFRL, [ + PA4: (pa4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA5: (pa5, 5, Input, AFRL, [ + PA5: (pa5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA6: (pa6, 6, Input, AFRL, [ + PA6: (pa6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA7: (pa7, 7, Input, AFRL, [ + PA7: (pa7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA8: (pa8, 8, Input, AFRH, [ + PA8: (pa8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA9: (pa9, 9, Input, AFRH, [ + PA9: (pa9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA10: (pa10, 10, Input, AFRH, [ + PA10: (pa10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA11: (pa11, 11, Input, AFRH, [ + PA11: (pa11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA12: (pa12, 12, Input, AFRH, [ + PA12: (pa12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA13: (pa13, 13, Input, AFRH, [ + PA13: (pa13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA14: (pa14, 14, Input, AFRH, [ + PA14: (pa14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PA15: (pa15, 15, Input, AFRH, [ + PA15: (pa15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -771,112 +753,112 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL, [ + PB0: (pb0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB1: (pb1, 1, Input, AFRL, [ + PB1: (pb1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB2: (pb2, 2, Input, AFRL, [ + PB2: (pb2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB3: (pb3, 3, Input, AFRL, [ + PB3: (pb3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB4: (pb4, 4, Input, AFRL, [ + PB4: (pb4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB5: (pb5, 5, Input, AFRL, [ + PB5: (pb5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB6: (pb6, 6, Input, AFRL, [ + PB6: (pb6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB7: (pb7, 7, Input, AFRL, [ + PB7: (pb7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB8: (pb8, 8, Input, AFRH, [ + PB8: (pb8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB9: (pb9, 9, Input, AFRH, [ + PB9: (pb9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB10: (pb10, 10, Input, AFRH, [ + PB10: (pb10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB11: (pb11, 11, Input, AFRH, [ + PB11: (pb11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB12: (pb12, 12, Input, AFRH, [ + PB12: (pb12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB13: (pb13, 13, Input, AFRH, [ + PB13: (pb13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB14: (pb14, 14, Input, AFRH, [ + PB14: (pb14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB15: (pb15, 15, Input, AFRH, [ + PB15: (pb15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -896,91 +878,91 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL, [ + PB0: (pb0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB1: (pb1, 1, Input, AFRL, [ + PB1: (pb1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB2: (pb2, 2, Input, AFRL, [ + PB2: (pb2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB3: (pb3, 3, Input, AFRL, [ + PB3: (pb3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB4: (pb4, 4, Input, AFRL, [ + PB4: (pb4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB5: (pb5, 5, Input, AFRL, [ + PB5: (pb5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB6: (pb6, 6, Input, AFRL, [ + PB6: (pb6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB7: (pb7, 7, Input, AFRL, [ + PB7: (pb7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB8: (pb8, 8, Input, AFRH, [ + PB8: (pb8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB9: (pb9, 9, Input, AFRH, [ + PB9: (pb9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB10: (pb10, 10, Input, AFRH, [ + PB10: (pb10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB14: (pb14, 14, Input, AFRH, [ + PB14: (pb14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PB15: (pb15, 15, Input, AFRH, [ + PB15: (pb15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1007,112 +989,112 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL, [ + PC0: (pc0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC1: (pc1, 1, Input, AFRL, [ + PC1: (pc1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC2: (pc2, 2, Input, AFRL, [ + PC2: (pc2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC3: (pc3, 3, Input, AFRL, [ + PC3: (pc3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC4: (pc4, 4, Input, AFRL, [ + PC4: (pc4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC5: (pc5, 5, Input, AFRL, [ + PC5: (pc5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC6: (pc6, 6, Input, AFRL, [ + PC6: (pc6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC7: (pc7, 7, Input, AFRL, [ + PC7: (pc7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC8: (pc8, 8, Input, AFRH, [ + PC8: (pc8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC9: (pc9, 9, Input, AFRH, [ + PC9: (pc9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC10: (pc10, 10, Input, AFRH, [ + PC10: (pc10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC11: (pc11, 11, Input, AFRH, [ + PC11: (pc11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC12: (pc12, 12, Input, AFRH, [ + PC12: (pc12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC13: (pc13, 13, Input, AFRH, [ + PC13: (pc13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC14: (pc14, 14, Input, AFRH, [ + PC14: (pc14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC15: (pc15, 15, Input, AFRH, [ + PC15: (pc15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1133,112 +1115,112 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL, [ + PC0: (pc0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC1: (pc1, 1, Input, AFRL, [ + PC1: (pc1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC2: (pc2, 2, Input, AFRL, [ + PC2: (pc2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC3: (pc3, 3, Input, AFRL, [ + PC3: (pc3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC4: (pc4, 4, Input, AFRL, [ + PC4: (pc4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC5: (pc5, 5, Input, AFRL, [ + PC5: (pc5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC6: (pc6, 6, Input, AFRL, [ + PC6: (pc6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC7: (pc7, 7, Input, AFRL, [ + PC7: (pc7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC8: (pc8, 8, Input, AFRH, [ + PC8: (pc8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC9: (pc9, 9, Input, AFRH, [ + PC9: (pc9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC10: (pc10, 10, Input, AFRH, [ + PC10: (pc10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC11: (pc11, 11, Input, AFRH, [ + PC11: (pc11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC12: (pc12, 12, Input, AFRH, [ + PC12: (pc12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC13: (pc13, 13, Input, AFRH, [ + PC13: (pc13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC14: (pc14, 14, Input, AFRH, [ + PC14: (pc14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PC15: (pc15, 15, Input, AFRH, [ + PC15: (pc15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1258,7 +1240,7 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD2: (pd2, 2, Input, AFRL, [ + PD2: (pd2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1278,112 +1260,112 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [ + PD0: (pd0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD1: (pd1, 1, Input, AFRL, [ + PD1: (pd1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD2: (pd2, 2, Input, AFRL, [ + PD2: (pd2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD3: (pd3, 3, Input, AFRL, [ + PD3: (pd3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD4: (pd4, 4, Input, AFRL, [ + PD4: (pd4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD5: (pd5, 5, Input, AFRL, [ + PD5: (pd5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD6: (pd6, 6, Input, AFRL, [ + PD6: (pd6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD7: (pd7, 7, Input, AFRL, [ + PD7: (pd7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD8: (pd8, 8, Input, AFRH, [ + PD8: (pd8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD9: (pd9, 9, Input, AFRH, [ + PD9: (pd9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD10: (pd10, 10, Input, AFRH, [ + PD10: (pd10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD11: (pd11, 11, Input, AFRH, [ + PD11: (pd11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD12: (pd12, 12, Input, AFRH, [ + PD12: (pd12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD13: (pd13, 13, Input, AFRH, [ + PD13: (pd13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD14: (pd14, 14, Input, AFRH, [ + PD14: (pd14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD15: (pd15, 15, Input, AFRH, [ + PD15: (pd15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1410,112 +1392,112 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [ + PD0: (pd0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD1: (pd1, 1, Input, AFRL, [ + PD1: (pd1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD2: (pd2, 2, Input, AFRL, [ + PD2: (pd2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD3: (pd3, 3, Input, AFRL, [ + PD3: (pd3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD4: (pd4, 4, Input, AFRL, [ + PD4: (pd4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD5: (pd5, 5, Input, AFRL, [ + PD5: (pd5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD6: (pd6, 6, Input, AFRL, [ + PD6: (pd6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD7: (pd7, 7, Input, AFRL, [ + PD7: (pd7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD8: (pd8, 8, Input, AFRH, [ + PD8: (pd8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD9: (pd9, 9, Input, AFRH, [ + PD9: (pd9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD10: (pd10, 10, Input, AFRH, [ + PD10: (pd10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD11: (pd11, 11, Input, AFRH, [ + PD11: (pd11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD12: (pd12, 12, Input, AFRH, [ + PD12: (pd12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD13: (pd13, 13, Input, AFRH, [ + PD13: (pd13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD14: (pd14, 14, Input, AFRH, [ + PD14: (pd14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PD15: (pd15, 15, Input, AFRH, [ + PD15: (pd15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1536,112 +1518,112 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL, [ + PE0: (pe0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE1: (pe1, 1, Input, AFRL, [ + PE1: (pe1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE2: (pe2, 2, Input, AFRL, [ + PE2: (pe2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE3: (pe3, 3, Input, AFRL, [ + PE3: (pe3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE4: (pe4, 4, Input, AFRL, [ + PE4: (pe4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE5: (pe5, 5, Input, AFRL, [ + PE5: (pe5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE6: (pe6, 6, Input, AFRL, [ + PE6: (pe6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE7: (pe7, 7, Input, AFRL, [ + PE7: (pe7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE8: (pe8, 8, Input, AFRH, [ + PE8: (pe8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE9: (pe9, 9, Input, AFRH, [ + PE9: (pe9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE10: (pe10, 10, Input, AFRH, [ + PE10: (pe10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE11: (pe11, 11, Input, AFRH, [ + PE11: (pe11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE12: (pe12, 12, Input, AFRH, [ + PE12: (pe12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE13: (pe13, 13, Input, AFRH, [ + PE13: (pe13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE14: (pe14, 14, Input, AFRH, [ + PE14: (pe14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE15: (pe15, 15, Input, AFRH, [ + PE15: (pe15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1666,112 +1648,112 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL, [ + PE0: (pe0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE1: (pe1, 1, Input, AFRL, [ + PE1: (pe1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE2: (pe2, 2, Input, AFRL, [ + PE2: (pe2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE3: (pe3, 3, Input, AFRL, [ + PE3: (pe3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE4: (pe4, 4, Input, AFRL, [ + PE4: (pe4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE5: (pe5, 5, Input, AFRL, [ + PE5: (pe5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE6: (pe6, 6, Input, AFRL, [ + PE6: (pe6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE7: (pe7, 7, Input, AFRL, [ + PE7: (pe7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE8: (pe8, 8, Input, AFRH, [ + PE8: (pe8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE9: (pe9, 9, Input, AFRH, [ + PE9: (pe9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE10: (pe10, 10, Input, AFRH, [ + PE10: (pe10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE11: (pe11, 11, Input, AFRH, [ + PE11: (pe11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE12: (pe12, 12, Input, AFRH, [ + PE12: (pe12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE13: (pe13, 13, Input, AFRH, [ + PE13: (pe13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE14: (pe14, 14, Input, AFRH, [ + PE14: (pe14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PE15: (pe15, 15, Input, AFRH, [ + PE15: (pe15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1791,14 +1773,14 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1818,56 +1800,56 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF2: (pf2, 2, Input, AFRL, [ + PF2: (pf2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF4: (pf4, 4, Input, AFRL, [ + PF4: (pf4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF5: (pf5, 5, Input, AFRL, [ + PF5: (pf5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF6: (pf6, 6, Input, AFRL, [ + PF6: (pf6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF9: (pf9, 9, Input, AFRH, [ + PF9: (pf9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF10: (pf10, 10, Input, AFRH, [ + PF10: (pf10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1887,56 +1869,56 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF2: (pf2, 2, Input, AFRL, [ + PF2: (pf2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF4: (pf4, 4, Input, AFRL, [ + PF4: (pf4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF5: (pf5, 5, Input, AFRL, [ + PF5: (pf5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF6: (pf6, 6, Input, AFRL, [ + PF6: (pf6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF9: (pf9, 9, Input, AFRH, [ + PF9: (pf9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF10: (pf10, 10, Input, AFRH, [ + PF10: (pf10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -1956,112 +1938,112 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF2: (pf2, 2, Input, AFRL, [ + PF2: (pf2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF3: (pf3, 3, Input, AFRL, [ + PF3: (pf3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF4: (pf4, 4, Input, AFRL, [ + PF4: (pf4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF5: (pf5, 5, Input, AFRL, [ + PF5: (pf5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF6: (pf6, 6, Input, AFRL, [ + PF6: (pf6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF7: (pf7, 7, Input, AFRL, [ + PF7: (pf7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF8: (pf8, 8, Input, AFRH, [ + PF8: (pf8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF9: (pf9, 9, Input, AFRH, [ + PF9: (pf9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF10: (pf10, 10, Input, AFRH, [ + PF10: (pf10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF11: (pf11, 11, Input, AFRH, [ + PF11: (pf11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF12: (pf12, 12, Input, AFRH, [ + PF12: (pf12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF13: (pf13, 13, Input, AFRH, [ + PF13: (pf13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF14: (pf14, 14, Input, AFRH, [ + PF14: (pf14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF15: (pf15, 15, Input, AFRH, [ + PF15: (pf15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -2081,56 +2063,56 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF2: (pf2, 2, Input, AFRL, [ + PF2: (pf2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF4: (pf4, 4, Input, AFRL, [ + PF4: (pf4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF6: (pf6, 6, Input, AFRL, [ + PF6: (pf6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF7: (pf7, 7, Input, AFRL, [ + PF7: (pf7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF9: (pf9, 9, Input, AFRH, [ + PF9: (pf9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF10: (pf10, 10, Input, AFRH, [ + PF10: (pf10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -2154,112 +2136,112 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ + PF0: (pf0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF1: (pf1, 1, Input, AFRL, [ + PF1: (pf1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF2: (pf2, 2, Input, AFRL, [ + PF2: (pf2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF3: (pf3, 3, Input, AFRL, [ + PF3: (pf3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF4: (pf4, 4, Input, AFRL, [ + PF4: (pf4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF5: (pf5, 5, Input, AFRL, [ + PF5: (pf5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF6: (pf6, 6, Input, AFRL, [ + PF6: (pf6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF7: (pf7, 7, Input, AFRL, [ + PF7: (pf7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF8: (pf8, 8, Input, AFRH, [ + PF8: (pf8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF9: (pf9, 9, Input, AFRH, [ + PF9: (pf9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF10: (pf10, 10, Input, AFRH, [ + PF10: (pf10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF11: (pf11, 11, Input, AFRH, [ + PF11: (pf11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF12: (pf12, 12, Input, AFRH, [ + PF12: (pf12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF13: (pf13, 13, Input, AFRH, [ + PF13: (pf13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF14: (pf14, 14, Input, AFRH, [ + PF14: (pf14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PF15: (pf15, 15, Input, AFRH, [ + PF15: (pf15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -2279,112 +2261,112 @@ gpio!([ gpio_mapped_iorst: iopgrst, partially_erased_pin: PGx, pins: [ - PG0: (pg0, 0, Input, AFRL, [ + PG0: (pg0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG1: (pg1, 1, Input, AFRL, [ + PG1: (pg1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG2: (pg2, 2, Input, AFRL, [ + PG2: (pg2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG3: (pg3, 3, Input, AFRL, [ + PG3: (pg3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG4: (pg4, 4, Input, AFRL, [ + PG4: (pg4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG5: (pg5, 5, Input, AFRL, [ + PG5: (pg5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG6: (pg6, 6, Input, AFRL, [ + PG6: (pg6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG7: (pg7, 7, Input, AFRL, [ + PG7: (pg7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG8: (pg8, 8, Input, AFRH, [ + PG8: (pg8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG9: (pg9, 9, Input, AFRH, [ + PG9: (pg9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG10: (pg10, 10, Input, AFRH, [ + PG10: (pg10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG11: (pg11, 11, Input, AFRH, [ + PG11: (pg11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG12: (pg12, 12, Input, AFRH, [ + PG12: (pg12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG13: (pg13, 13, Input, AFRH, [ + PG13: (pg13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG14: (pg14, 14, Input, AFRH, [ + PG14: (pg14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PG15: (pg15, 15, Input, AFRH, [ + PG15: (pg15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), @@ -2404,112 +2386,112 @@ gpio!([ gpio_mapped_iorst: iophrst, partially_erased_pin: PHx, pins: [ - PH0: (ph0, 0, Input, AFRL, [ + PH0: (ph0, 0, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH1: (ph1, 1, Input, AFRL, [ + PH1: (ph1, 1, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH2: (ph2, 2, Input, AFRL, [ + PH2: (ph2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH3: (ph3, 3, Input, AFRL, [ + PH3: (ph3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH4: (ph4, 4, Input, AFRL, [ + PH4: (ph4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH5: (ph5, 5, Input, AFRL, [ + PH5: (ph5, 5, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH6: (ph6, 6, Input, AFRL, [ + PH6: (ph6, 6, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH7: (ph7, 7, Input, AFRL, [ + PH7: (ph7, 7, Input, AFRL, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH8: (ph8, 8, Input, AFRH, [ + PH8: (ph8, 8, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH9: (ph9, 9, Input, AFRH, [ + PH9: (ph9, 9, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH10: (ph10, 10, Input, AFRH, [ + PH10: (ph10, 10, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH11: (ph11, 11, Input, AFRH, [ + PH11: (ph11, 11, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH12: (ph12, 12, Input, AFRH, [ + PH12: (ph12, 12, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH13: (ph13, 13, Input, AFRH, [ + PH13: (ph13, 13, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH14: (ph14, 14, Input, AFRH, [ + PH14: (ph14, 14, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), AF7: (into_af7, 7, [],), AF14: (into_af14, 14, [],), ]), - PH15: (ph15, 15, Input, AFRH, [ + PH15: (ph15, 15, Input, AFRH, [], [ AF4: (into_af4, 4, [],), AF5: (into_af5, 5, [],), AF6: (into_af6, 6, [],), From 104b9c3ef0f51476898c926d7af5172bd7a89261 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 26 Oct 2019 18:31:45 -0700 Subject: [PATCH 04/38] Allow all alternate functions for each relevant device for pin A1. --- src/gpio.rs | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index cc93464b3..cf0b9240a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -200,7 +200,7 @@ macro_rules! gpio { use crate::rcc::AHB; #[allow(unused_imports)] - use super::{AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF14, AF15}; + use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF9, AF14, AF15}; use super::{ Floating, GpioExt, Input, OpenDrain, Output, PullDown, PullUp, PushPull, @@ -627,12 +627,35 @@ gpio!([ "stm32f378", ],), ]), - PA1: (pa1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), + PA1: (pa1, 1, Input, AFRL, [ + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF15: (into_af15, 15,), + ], [ + AF0: (into_af0, 0, [ + "stm32f301", + "stm32f318", + "stm32f302", + "stm32f303", + "stm32f373", + "stm32f378", + "stm32f358", + "stm32f398", + ],), + AF2: (into_af2, 2, [ + "stm32f373", + "stm32f378", + ],), + AF6: (into_af6, 6, [ + "stm32f373", + "stm32f378", + ],), + AF11: (into_af11, 11, [ + "stm32f373", + "stm32f378", + ],), ]), PA2: (pa2, 2, Input, AFRL, [], [ AF4: (into_af4, 4, [],), From f8e21ccf7ddaaa70ede720495f48d5801bbe18a1 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 26 Oct 2019 18:37:28 -0700 Subject: [PATCH 05/38] Allow all alternate functions for each relevant device for pin A2. --- src/gpio.rs | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index cf0b9240a..e39bea21b 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -200,7 +200,7 @@ macro_rules! gpio { use crate::rcc::AHB; #[allow(unused_imports)] - use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF9, AF14, AF15}; + use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF8, AF9, AF14, AF15}; use super::{ Floating, GpioExt, Input, OpenDrain, Output, PullDown, PullUp, PushPull, @@ -657,12 +657,26 @@ gpio!([ "stm32f378", ],), ]), - PA2: (pa2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), + PA2: (pa2, 2, Input, AFRL, [ + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF8: (into_af8, 8,), + AF9: (into_af9, 9,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, [ + "stm32f373", + "stm32f378", + ],), + AF6: (into_af6, 6, [ + "stm32f373", + "stm32f378", + ],), + AF11: (into_af11, 11, [ + "stm32f373", + "stm32f378", + ],), ]), PA3: (pa3, 3, Input, AFRL, [], [ AF4: (into_af4, 4, [],), From ddf06303d7584730d8eea1ea186f06d9cb995a13 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 26 Oct 2019 18:42:40 -0700 Subject: [PATCH 06/38] Allow all alternate functions for each relevant device for pin A3. --- src/gpio.rs | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index e39bea21b..facdda910 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -678,12 +678,25 @@ gpio!([ "stm32f378", ],), ]), - PA3: (pa3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), + PA3: (pa3, 3, Input, AFRL, [ + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, [ + "stm32f373", + "stm32f378", + ],), + AF6: (into_af6, 6, [ + "stm32f373", + "stm32f378", + ],), + AF11: (into_af11, 11, [ + "stm32f373", + "stm32f378", + ],), ]), PA4: (pa4, 4, Input, AFRL, [], [ AF4: (into_af4, 4, [],), From ed3491009dc67758b715a9cf97213fc27cd3e41e Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 26 Oct 2019 19:07:39 -0700 Subject: [PATCH 07/38] Move the AF4,5,6,7,14 macro for all pins into the all-device list. --- src/gpio.rs | 3192 +++++++++++++++++++++++++-------------------------- 1 file changed, 1596 insertions(+), 1596 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index facdda910..d94403151 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -698,90 +698,90 @@ gpio!([ "stm32f378", ],), ]), - PA4: (pa4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA5: (pa5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA6: (pa6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA7: (pa7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA8: (pa8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA9: (pa9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA10: (pa10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA11: (pa11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA12: (pa12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA13: (pa13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA14: (pa14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PA15: (pa15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PA4: (pa4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA5: (pa5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA6: (pa6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA7: (pa7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA8: (pa8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA9: (pa9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA10: (pa10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA11: (pa11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA12: (pa12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA13: (pa13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA14: (pa14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PA15: (pa15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -803,118 +803,118 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB1: (pb1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB2: (pb2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB3: (pb3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB4: (pb4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB5: (pb5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB6: (pb6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB7: (pb7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB8: (pb8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB9: (pb9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB10: (pb10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB11: (pb11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB12: (pb12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB13: (pb13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB14: (pb14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB15: (pb15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PB0: (pb0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB1: (pb1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB2: (pb2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB3: (pb3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB4: (pb4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB5: (pb5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB6: (pb6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB7: (pb7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB8: (pb8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB9: (pb9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB10: (pb10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB11: (pb11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB12: (pb12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB13: (pb13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB14: (pb14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB15: (pb15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -928,97 +928,97 @@ gpio!([ gpio_mapped_iorst: iopbrst, partially_erased_pin: PBx, pins: [ - PB0: (pb0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB1: (pb1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB2: (pb2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB3: (pb3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB4: (pb4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB5: (pb5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB6: (pb6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB7: (pb7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB8: (pb8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB9: (pb9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB10: (pb10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB14: (pb14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PB15: (pb15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PB0: (pb0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB1: (pb1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB2: (pb2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB3: (pb3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB4: (pb4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB5: (pb5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB6: (pb6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB7: (pb7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB8: (pb8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB9: (pb9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB10: (pb10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB14: (pb14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PB15: (pb15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1039,118 +1039,118 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC1: (pc1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC2: (pc2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC3: (pc3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC4: (pc4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC5: (pc5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC6: (pc6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC7: (pc7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC8: (pc8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC9: (pc9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC10: (pc10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC11: (pc11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC12: (pc12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC13: (pc13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC14: (pc14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC15: (pc15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PC0: (pc0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC1: (pc1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC2: (pc2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC3: (pc3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC4: (pc4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC5: (pc5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC6: (pc6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC7: (pc7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC8: (pc8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC9: (pc9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC10: (pc10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC11: (pc11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC12: (pc12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC13: (pc13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC14: (pc14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC15: (pc15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1165,118 +1165,118 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC1: (pc1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC2: (pc2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC3: (pc3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC4: (pc4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC5: (pc5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC6: (pc6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC7: (pc7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC8: (pc8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC9: (pc9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC10: (pc10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC11: (pc11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC12: (pc12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC13: (pc13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC14: (pc14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PC15: (pc15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PC0: (pc0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC1: (pc1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC2: (pc2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC3: (pc3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC4: (pc4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC5: (pc5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC6: (pc6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC7: (pc7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC8: (pc8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC9: (pc9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC10: (pc10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC11: (pc11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC12: (pc12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC13: (pc13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC14: (pc14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PC15: (pc15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1290,13 +1290,13 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD2: (pd2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1310,118 +1310,118 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD1: (pd1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD2: (pd2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD3: (pd3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD4: (pd4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD5: (pd5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD6: (pd6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD7: (pd7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD8: (pd8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD9: (pd9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD10: (pd10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD11: (pd11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD12: (pd12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD13: (pd13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD14: (pd14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD15: (pd15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PD0: (pd0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD1: (pd1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD3: (pd3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD4: (pd4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD5: (pd5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD6: (pd6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD7: (pd7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD8: (pd8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD9: (pd9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD10: (pd10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD11: (pd11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD12: (pd12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD13: (pd13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD14: (pd14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD15: (pd15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1442,118 +1442,118 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD1: (pd1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD2: (pd2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD3: (pd3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD4: (pd4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD5: (pd5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD6: (pd6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD7: (pd7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD8: (pd8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD9: (pd9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD10: (pd10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD11: (pd11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD12: (pd12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD13: (pd13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD14: (pd14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PD15: (pd15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PD0: (pd0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD1: (pd1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD2: (pd2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD3: (pd3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD4: (pd4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD5: (pd5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD6: (pd6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD7: (pd7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD8: (pd8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD9: (pd9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD10: (pd10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD11: (pd11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD12: (pd12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD13: (pd13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD14: (pd14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PD15: (pd15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1568,118 +1568,118 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE1: (pe1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE2: (pe2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE3: (pe3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE4: (pe4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE5: (pe5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE6: (pe6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE7: (pe7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE8: (pe8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE9: (pe9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE10: (pe10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE11: (pe11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE12: (pe12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE13: (pe13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE14: (pe14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE15: (pe15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PE0: (pe0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE1: (pe1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE2: (pe2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE3: (pe3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE4: (pe4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE5: (pe5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE6: (pe6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE7: (pe7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE8: (pe8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE9: (pe9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE10: (pe10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE11: (pe11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE12: (pe12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE13: (pe13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE14: (pe14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE15: (pe15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1698,118 +1698,118 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE1: (pe1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE2: (pe2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE3: (pe3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE4: (pe4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE5: (pe5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE6: (pe6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE7: (pe7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE8: (pe8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE9: (pe9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE10: (pe10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE11: (pe11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE12: (pe12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE13: (pe13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE14: (pe14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PE15: (pe15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PE0: (pe0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE1: (pe1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE2: (pe2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE3: (pe3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE4: (pe4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE5: (pe5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE6: (pe6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE7: (pe7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE8: (pe8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE9: (pe9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE10: (pe10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE11: (pe11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE12: (pe12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE13: (pe13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE14: (pe14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PE15: (pe15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1823,20 +1823,20 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1850,62 +1850,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF2: (pf2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF4: (pf4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF5: (pf5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF6: (pf6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF9: (pf9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF10: (pf10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1919,62 +1919,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF2: (pf2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF4: (pf4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF5: (pf5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF6: (pf6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF9: (pf9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF10: (pf10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -1988,118 +1988,118 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF2: (pf2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF3: (pf3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF4: (pf4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF5: (pf5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF6: (pf6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF7: (pf7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF8: (pf8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF9: (pf9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF10: (pf10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF11: (pf11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF12: (pf12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF13: (pf13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF14: (pf14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF15: (pf15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF3: (pf3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF8: (pf8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF11: (pf11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF12: (pf12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF13: (pf13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF14: (pf14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF15: (pf15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -2113,62 +2113,62 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF2: (pf2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF4: (pf4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF6: (pf6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF7: (pf7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF9: (pf9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF10: (pf10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -2186,118 +2186,118 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF1: (pf1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF2: (pf2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF3: (pf3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF4: (pf4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF5: (pf5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF6: (pf6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF7: (pf7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF8: (pf8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF9: (pf9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF10: (pf10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF11: (pf11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF12: (pf12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF13: (pf13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF14: (pf14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PF15: (pf15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PF0: (pf0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF1: (pf1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF2: (pf2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF3: (pf3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF4: (pf4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF5: (pf5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF6: (pf6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF7: (pf7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF8: (pf8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF9: (pf9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF10: (pf10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF11: (pf11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF12: (pf12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF13: (pf13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF14: (pf14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PF15: (pf15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -2311,118 +2311,118 @@ gpio!([ gpio_mapped_iorst: iopgrst, partially_erased_pin: PGx, pins: [ - PG0: (pg0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG1: (pg1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG2: (pg2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG3: (pg3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG4: (pg4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG5: (pg5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG6: (pg6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG7: (pg7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG8: (pg8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG9: (pg9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG10: (pg10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG11: (pg11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG12: (pg12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG13: (pg13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG14: (pg14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PG15: (pg15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PG0: (pg0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG1: (pg1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG2: (pg2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG3: (pg3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG4: (pg4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG5: (pg5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG6: (pg6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG7: (pg7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG8: (pg8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG9: (pg9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG10: (pg10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG11: (pg11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG12: (pg12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG13: (pg13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG14: (pg14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PG15: (pg15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, { @@ -2436,118 +2436,118 @@ gpio!([ gpio_mapped_iorst: iophrst, partially_erased_pin: PHx, pins: [ - PH0: (ph0, 0, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH1: (ph1, 1, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH2: (ph2, 2, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH3: (ph3, 3, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH4: (ph4, 4, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH5: (ph5, 5, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH6: (ph6, 6, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH7: (ph7, 7, Input, AFRL, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH8: (ph8, 8, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH9: (ph9, 9, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH10: (ph10, 10, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH11: (ph11, 11, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH12: (ph12, 12, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH13: (ph13, 13, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH14: (ph14, 14, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), - PH15: (ph15, 15, Input, AFRH, [], [ - AF4: (into_af4, 4, [],), - AF5: (into_af5, 5, [],), - AF6: (into_af6, 6, [],), - AF7: (into_af7, 7, [],), - AF14: (into_af14, 14, [],), - ]), + PH0: (ph0, 0, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH1: (ph1, 1, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH2: (ph2, 2, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH3: (ph3, 3, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH4: (ph4, 4, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH5: (ph5, 5, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH6: (ph6, 6, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH7: (ph7, 7, Input, AFRL, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH8: (ph8, 8, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH9: (ph9, 9, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH10: (ph10, 10, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH11: (ph11, 11, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH12: (ph12, 12, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH13: (ph13, 13, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH14: (ph14, 14, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), + PH15: (ph15, 15, Input, AFRH, [ + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF14: (into_af14, 14,), + ], []), ], }, ]); From afce32dff27d77df3571b41e4cc87c5791acc62e Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Mon, 28 Oct 2019 21:01:02 -0700 Subject: [PATCH 08/38] Allow all alternate functions for each relevant device for remaining pins in gpio port A. --- src/gpio.rs | 220 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 147 insertions(+), 73 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index d94403151..bef20143d 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -200,7 +200,7 @@ macro_rules! gpio { use crate::rcc::AHB; #[allow(unused_imports)] - use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF8, AF9, AF14, AF15}; + use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF8, AF9, AF10, AF11, AF12, AF14, AF15}; use super::{ Floating, GpioExt, Input, OpenDrain, Output, PullDown, PullUp, PushPull, @@ -699,89 +699,163 @@ gpio!([ ],), ]), PA4: (pa4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f301", "stm32f318",],), + AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), + ]), PA5: (pa5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378",],), + AF9: (into_af9, 9, ["stm32f373", "stm32f378",],), + AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), + ]), PA6: (pa6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f373", "stm32f378",],), + AF13: (into_af13, 13, ["stm32f334", "stm32f328",],), + ]), PA7: (pa7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302",],), + AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358",],), + AF9: (into_af9, 9, ["stm32f373", "stm32f378",],), + ]), PA8: (pa8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f318", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f303", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PA9: (pa9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f301", "stm32f318", "stm32f373", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f303", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PA10: (pa10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), + ], [ + AF4: (into_af4, 4, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f373", "stm32f378",],), + AF11: (into_af11, 11, ["stm32f303", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PA11: (pa11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF5: (into_af5, 5, ["stm32f318", "stm32f373", "stm32f378", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f301", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f302", "stm32f334",],), + AF14: (into_af14, 14, ["stm32f302", "stm32f303",],), + ]), PA12: (pa12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF8: (into_af8, 8,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF5: (into_af5, 5, ["stm32f318", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f301", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + AF14: (into_af14, 14, ["stm32f302", "stm32f303",],), + ]), PA13: (pa13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f373", "stm32f378", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + ]), PA14: (pa14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF15: (into_af15, 15,), + ], [ + AF5: (into_af5, 5, ["stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), + ]), PA15: (pa15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f303", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f318", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), ], }, { From bd703582506681457ff6450e1e3ff39ba665056c Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Mon, 28 Oct 2019 21:46:40 -0700 Subject: [PATCH 09/38] Allow all alternate functions for stm32f373 gpio port B. --- src/gpio.rs | 161 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 96 insertions(+), 65 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index bef20143d..83c70024b 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1003,95 +1003,126 @@ gpio!([ partially_erased_pin: PBx, pins: [ PB0: (pb0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), ], []), PB1: (pb1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), ], []), PB2: (pb2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF15: (into_af15, 15,), ], []), PB3: (pb3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), ], []), PB4: (pb4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), ], []), PB5: (pb5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF10: (into_af10, 10,), + AF11: (into_af11, 11,), + AF15: (into_af15, 15,), ], []), PB6: (pb6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF10: (into_af10, 10,), + AF11: (into_af11, 11,), + AF15: (into_af15, 15,), ], []), PB7: (pb7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF10: (into_af10, 10,), + AF11: (into_af11, 11,), + AF15: (into_af15, 15,), ], []), PB8: (pb8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF8: (into_af8, 8,), + AF9: (into_af9, 9,), + AF11: (into_af11, 11,), + AF15: (into_af15, 15,), ], []), PB9: (pb9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF8: (into_af8, 8,), + AF9: (into_af9, 9,), + AF11: (into_af11, 11,), + AF15: (into_af15, 15,), ], []), PB10: (pb10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), ], []), PB14: (pb14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF7: (into_af7, 7,), + AF9: (into_af9, 9,), + AF15: (into_af15, 15,), ], []), PB15: (pb15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), + AF9: (into_af9, 9,), + AF15: (into_af15, 15,), ], []), ], }, From 9cefa1c5280d2b33d81246c524213bd1dfd4a378 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Mon, 28 Oct 2019 22:05:24 -0700 Subject: [PATCH 10/38] Allow all alternate functions for all remaining devices for gpio port B. --- src/gpio.rs | 279 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 179 insertions(+), 100 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 83c70024b..309d4066f 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -878,117 +878,196 @@ gpio!([ partially_erased_pin: PBx, pins: [ PB0: (pb0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f378",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f378",],), + ]), PB1: (pb1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PB2: (pb2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF3: (into_af3, 3,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), + PB2: (pb2, 2, Input, AFRL, [], [ + AF3: (into_af3, 3, ["stm32f301", "stm32f302", "stm32f303", "stm32f334",],), + AF13: (into_af13, 13, ["stm32f334",],), + AF15: (into_af15, 15, ["stm32f301", "stm32f302", "stm32f303", "stm32f334",],), + ]), PB3: (pb3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f334",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB4: (pb4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB5: (pb5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), + AF10: (into_af10, 10,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f301", "stm32f318", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB6: (pb6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f303", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF10: (into_af10, 10, ["stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f378",],), + AF12: (into_af12, 12, ["stm32f334",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB7: (pb7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f303", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f378",],), + AF12: (into_af12, 12, ["stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB8: (pb8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF4: (into_af4, 4,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f378",],), + AF6: (into_af6, 6, ["stm32f378",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f334", "stm32f328", "stm32f378", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f303", "stm32f358", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f378",],), + AF12: (into_af12, 12, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB9: (pb9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + AF6: (into_af6, 6,), + AF8: (into_af8, 8,), + AF15: (into_af15, 15,), + ], [ + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f378",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f334", "stm32f328", "stm32f378", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f378", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f303", "stm32f358", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB10: (pb10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PB11: (pb11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PB12: (pb12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PB13: (pb13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF5: (into_af5, 5, ["stm32f378",],), + AF6: (into_af6, 6, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), + PB11: (pb11, 11, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + AF15: (into_af15, 15, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + ]), + PB12: (pb12, 12, Input, AFRH, [], [ + AF3: (into_af3, 3, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + AF15: (into_af15, 15, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + ]), + PB13: (pb13, 13, Input, AFRH, [], [ + AF3: (into_af3, 3, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF13: (into_af13, 13, ["stm32f334",],), + AF15: (into_af15, 15, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + ]), PB14: (pb14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), + AF15: (into_af15, 15,), + ], [ + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), PB15: (pb15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF15: (into_af15, 15,), + ], [ + AF0: (into_af0, 0, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f378",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f358", "stm32f378", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f378",],), + AF13: (into_af13, 13, ["stm32f334",],), + ]), ], }, { From 584ef9100ccff2344e2a302ff3869886ef982865 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Mon, 28 Oct 2019 22:05:42 -0700 Subject: [PATCH 11/38] Add missing import for AF13. --- src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpio.rs b/src/gpio.rs index 309d4066f..4f67d5572 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -200,7 +200,7 @@ macro_rules! gpio { use crate::rcc::AHB; #[allow(unused_imports)] - use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF8, AF9, AF10, AF11, AF12, AF14, AF15}; + use super::{AF0, AF1, AF2, AF3, AF4, AF5, AF6, AF7, AF8, AF9, AF10, AF11, AF12, AF13, AF14, AF15}; use super::{ Floating, GpioExt, Input, OpenDrain, Output, PullDown, PullUp, PushPull, From 669e6b128dd49b6c12ad5b9c52d0ac39b8e50ced Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:38:12 -0700 Subject: [PATCH 12/38] Whitespace for Port A. --- src/gpio.rs | 82 +++++++++-------------------------------------------- 1 file changed, 14 insertions(+), 68 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 4f67d5572..b670ec65c 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -604,28 +604,10 @@ gpio!([ AF15: (into_af15, 15,), ], [ AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF8: (into_af8, 8, [ - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f358", - "stm32f398", - ],), - AF9: (into_af9, 9, [ - "stm32f303", - "stm32f358", - "stm32f398", - ],), - AF10: (into_af10, 10, [ - "stm32f303", - "stm32f358", - "stm32f398", - ],), - AF11: (into_af11, 11, [ - "stm32f373", - "stm32f378", - ],), + AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f303", "stm32f358", "stm32f398",],), + AF10: (into_af10, 10, ["stm32f303", "stm32f358", "stm32f398",],), + AF11: (into_af11, 11, ["stm32f373", "stm32f378",],), ]), PA1: (pa1, 1, Input, AFRL, [ AF1: (into_af1, 1,), @@ -634,28 +616,10 @@ gpio!([ AF9: (into_af9, 9,), AF15: (into_af15, 15,), ], [ - AF0: (into_af0, 0, [ - "stm32f301", - "stm32f318", - "stm32f302", - "stm32f303", - "stm32f373", - "stm32f378", - "stm32f358", - "stm32f398", - ],), - AF2: (into_af2, 2, [ - "stm32f373", - "stm32f378", - ],), - AF6: (into_af6, 6, [ - "stm32f373", - "stm32f378", - ],), - AF11: (into_af11, 11, [ - "stm32f373", - "stm32f378", - ],), + AF0: (into_af0, 0, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f373", "stm32f378",],), + AF11: (into_af11, 11, ["stm32f373", "stm32f378",],), ]), PA2: (pa2, 2, Input, AFRL, [ AF1: (into_af1, 1,), @@ -665,18 +629,9 @@ gpio!([ AF9: (into_af9, 9,), AF15: (into_af15, 15,), ], [ - AF2: (into_af2, 2, [ - "stm32f373", - "stm32f378", - ],), - AF6: (into_af6, 6, [ - "stm32f373", - "stm32f378", - ],), - AF11: (into_af11, 11, [ - "stm32f373", - "stm32f378", - ],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f373", "stm32f378",],), + AF11: (into_af11, 11, ["stm32f373", "stm32f378",],), ]), PA3: (pa3, 3, Input, AFRL, [ AF1: (into_af1, 1,), @@ -685,18 +640,9 @@ gpio!([ AF9: (into_af9, 9,), AF15: (into_af15, 15,), ], [ - AF2: (into_af2, 2, [ - "stm32f373", - "stm32f378", - ],), - AF6: (into_af6, 6, [ - "stm32f373", - "stm32f378", - ],), - AF11: (into_af11, 11, [ - "stm32f373", - "stm32f378", - ],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f373", "stm32f378",],), + AF11: (into_af11, 11, ["stm32f373", "stm32f378",],), ]), PA4: (pa4, 4, Input, AFRL, [ AF3: (into_af3, 3,), From 18f89ae93c98b6a5980609d851348c1f98bb808e Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:38:38 -0700 Subject: [PATCH 13/38] Fix incorrect AF9 in PA4 for 301 and 318. --- src/gpio.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gpio.rs b/src/gpio.rs index b670ec65c..18c811794 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -652,7 +652,6 @@ gpio!([ AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), - AF9: (into_af9, 9, ["stm32f301", "stm32f318",],), AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), ]), PA5: (pa5, 5, Input, AFRL, [ From f79f5e119306b9bef43e292b62580aede8b7d501 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:49:39 -0700 Subject: [PATCH 14/38] Allow alternate functions for some boards for Port C. --- src/gpio.rs | 232 +++++++++++++++++++++++++++------------------------- 1 file changed, 120 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 18c811794..215aba23b 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1168,118 +1168,126 @@ gpio!([ gpio_mapped_iorst: iopcrst, partially_erased_pin: PCx, pins: [ - PC0: (pc0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC1: (pc1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC2: (pc2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC3: (pc3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC4: (pc4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC5: (pc5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC6: (pc6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC7: (pc7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC8: (pc8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC9: (pc9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC10: (pc10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC11: (pc11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC12: (pc12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC13: (pc13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC14: (pc14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC15: (pc15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PC0: (pc0, 0, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC1: (pc1, 1, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f398",],), + ]), + PC2: (pc2, 2, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + ]), + PC3: (pc3, 3, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f334", "stm32f398",],), + ]), + PC4: (pc4, 4, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f358",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC5: (pc5, 5, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f358",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC6: (pc6, 6, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f334", "stm32f398",],), + ]), + PC7: (pc7, 7, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f398",],), + ]), + PC8: (pc8, 8, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f358",],), + AF7: (into_af7, 7, ["stm32f398",],), + ]), + PC9: (pc9, 9, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + ]), + PC10: (pc10, 10, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, ["stm32f358",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC11: (pc11, 11, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC12: (pc12, 12, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + ]), + PC13: (pc13, 13, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f334", "stm32f328", "stm32f398",],), + ]), + PC14: (pc14, 14, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + ]), + PC15: (pc15, 15, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + ]), ], }, { From 01787049cdbcd31a5c85fd35f9622e681ec6626c Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:51:55 -0700 Subject: [PATCH 15/38] Allow alternate functions for remaining devices for Port C. --- src/gpio.rs | 153 +++++++++++++++++++++------------------------------- 1 file changed, 62 insertions(+), 91 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 215aba23b..aad866562 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1303,117 +1303,88 @@ gpio!([ partially_erased_pin: PCx, pins: [ PC0: (pc0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), ], []), PC1: (pc1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), ], []), PC2: (pc2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF2: (into_af2, 2,), ], []), PC3: (pc3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF5: (into_af5, 5,), ], []), PC4: (pc4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF6: (into_af6, 6,), ], []), PC5: (pc5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF2: (into_af2, 2,), + AF6: (into_af6, 6,), ], []), PC6: (pc6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + ]), PC7: (pc7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF5: (into_af5, 5,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + AF6: (into_af6, 6, ["stm32f303",],), + ]), PC8: (pc8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + AF6: (into_af6, 6, ["stm32f303",],), + ]), PC9: (pc9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + AF5: (into_af5, 5, ["stm32f303",],), + ]), PC10: (pc10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + ]), PC11: (pc11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + ]), PC12: (pc12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + AF0: (into_af0, 0,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), + ], [ + AF3: (into_af3, 3, ["stm32f303",],), + ]), PC13: (pc13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC14: (pc14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PC15: (pc15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF3: (into_af3, 3,), ], []), + PC14: (pc14, 14, Input, AFRH, [], []), + PC15: (pc15, 15, Input, AFRH, [], []), ], }, { From 3273625e740c45a38a59b803424c16c6e40ac644 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:54:47 -0700 Subject: [PATCH 16/38] Allow alternate functions for stm32f301 for port D. --- src/gpio.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index aad866562..1c791ea71 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1399,11 +1399,7 @@ gpio!([ partially_erased_pin: PDx, pins: [ PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), ], []), ], }, From db2e3b89ec37a669506f7d6ce3ab5fbb007ad1d9 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 19:58:07 -0700 Subject: [PATCH 17/38] Allow alternate functions for stm32f334 for port D. --- src/gpio.rs | 127 +++++++--------------------------------------------- 1 file changed, 17 insertions(+), 110 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 1c791ea71..497c316c6 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1414,118 +1414,25 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD1: (pd1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PD0: (pd0, 0, Input, AFRL, [], []), + PD1: (pd1, 1, Input, AFRL, [], []), PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD3: (pd3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD4: (pd4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD5: (pd5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD6: (pd6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD7: (pd7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD8: (pd8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD9: (pd9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD10: (pd10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD11: (pd11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD12: (pd12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD13: (pd13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD14: (pd14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD15: (pd15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), + PD3: (pd3, 3, Input, AFRL, [], []), + PD4: (pd4, 4, Input, AFRL, [], []), + PD5: (pd5, 5, Input, AFRL, [], []), + PD6: (pd6, 6, Input, AFRL, [], []), + PD7: (pd7, 7, Input, AFRL, [], []), + PD8: (pd8, 8, Input, AFRH, [], []), + PD9: (pd9, 9, Input, AFRH, [], []), + PD10: (pd10, 10, Input, AFRH, [], []), + PD11: (pd11, 11, Input, AFRH, [], []), + PD12: (pd12, 12, Input, AFRH, [], []), + PD13: (pd13, 13, Input, AFRH, [], []), + PD14: (pd14, 14, Input, AFRH, [], []), + PD15: (pd15, 15, Input, AFRH, [], []), ], }, { From a402057e96ea509ded2ae350baa9f66e978a7d2b Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:02:49 -0700 Subject: [PATCH 18/38] Allow alternate functions for remaining devices for Port D. --- src/gpio.rs | 245 ++++++++++++++++++++++++++++------------------------ 1 file changed, 133 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 497c316c6..1d755a057 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1453,118 +1453,139 @@ gpio!([ gpio_mapped_iorst: iopdrst, partially_erased_pin: PDx, pins: [ - PD0: (pd0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD1: (pd1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD2: (pd2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD3: (pd3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD4: (pd4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD5: (pd5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD6: (pd6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD7: (pd7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD8: (pd8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD9: (pd9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD10: (pd10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD11: (pd11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD12: (pd12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD13: (pd13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD14: (pd14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PD15: (pd15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PD0: (pd0, 0, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD1: (pd1, 1, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), + AF3: (into_af3, 3, ["stm32f303", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f303", "stm32f358",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD2: (pd2, 2, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f328", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f328", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f303", "stm32f358",],), + AF4: (into_af4, 4, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + ]), + PD3: (pd3, 3, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD4: (pd4, 4, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD5: (pd5, 5, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD6: (pd6, 6, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD7: (pd7, 7, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD8: (pd8, 8, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD9: (pd9, 9, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD10: (pd10, 10, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD11: (pd11, 11, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD12: (pd12, 12, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD13: (pd13, 13, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD14: (pd14, 14, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PD15: (pd15, 15, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f358",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), ], }, { From 1d41d65d5b4e76443793c93f7a6f876645bfef18 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:06:03 -0700 Subject: [PATCH 19/38] Allow alternate functions for stm32f302 and stm32f303 for port E. --- src/gpio.rs | 125 +++++++++++++++++++--------------------------------- 1 file changed, 45 insertions(+), 80 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 1d755a057..28795d511 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1601,116 +1601,81 @@ gpio!([ partially_erased_pin: PEx, pins: [ PE0: (pe0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF6: (into_af6, 6,), ], []), PE1: (pe1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + AF6: (into_af6, 6,), ], []), PE2: (pe2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), ], []), PE3: (pe3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), ], []), PE4: (pe4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), ], []), PE5: (pe5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF3: (into_af3, 3,), ], []), PE6: (pe6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), PE7: (pe7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE8: (pe8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE9: (pe9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE10: (pe10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE11: (pe11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE12: (pe12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE13: (pe13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PE14: (pe14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF5: (into_af5, 5,), ], []), PE15: (pe15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF6: (into_af6, 6,), ], []), ], }, From a1babd1eac01c29e26e04e1f84b9e78db7380d42 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:08:53 -0700 Subject: [PATCH 20/38] Allow alternate functions for stm32f318, stm32f328, stm32f358, stm32f373, stm32f378 and stm32f398 for port E. --- src/gpio.rs | 222 ++++++++++++++++++++++++++-------------------------- 1 file changed, 110 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 28795d511..a98209638 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1695,118 +1695,116 @@ gpio!([ gpio_mapped_iorst: ioperst, partially_erased_pin: PEx, pins: [ - PE0: (pe0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE1: (pe1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE2: (pe2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE3: (pe3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE4: (pe4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE5: (pe5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE6: (pe6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE7: (pe7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE8: (pe8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE9: (pe9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE10: (pe10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE11: (pe11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE12: (pe12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE13: (pe13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE14: (pe14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PE15: (pe15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PE0: (pe0, 0, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE1: (pe1, 1, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE2: (pe2, 2, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE3: (pe3, 3, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE4: (pe4, 4, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE5: (pe5, 5, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE6: (pe6, 6, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE7: (pe7, 7, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE8: (pe8, 8, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE9: (pe9, 9, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE10: (pe10, 10, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE11: (pe11, 11, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE12: (pe12, 12, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE13: (pe13, 13, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE14: (pe14, 14, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PE15: (pe15, 15, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f358",],), + AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), ], }, { From cd7e3d2d5c148eaadca363fa16a15311f4901463 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:11:24 -0700 Subject: [PATCH 21/38] Allow alternate functions for stm32f301 for port F. --- src/gpio.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index a98209638..4f75907bf 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1819,18 +1819,13 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF6: (into_af6, 6,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), ], []), ], }, From 169ffe2513f17c4beb83524746dc7ab777263f6b Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:13:33 -0700 Subject: [PATCH 22/38] Allow alternate functions for stm32f302 for port F. --- src/gpio.rs | 59 ++++++++++++++--------------------------------------- 1 file changed, 15 insertions(+), 44 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 4f75907bf..292143f4a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1841,60 +1841,31 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF3: (into_af3, 3,), ], []), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), ], []), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), + PF5: (pf5, 5, Input, AFRL, [], []), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF6: (into_af6, 6,), ], []), + PF9: (pf9, 9, Input, AFRH, [], []), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), ], []), ], }, From 6daa436d113977e08e305d1c9ef2a4205ad9a576 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:15:31 -0700 Subject: [PATCH 23/38] Allow alternate functions for stm32f334 for port F. --- src/gpio.rs | 62 +++++++---------------------------------------------- 1 file changed, 8 insertions(+), 54 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 292143f4a..fac763ef7 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1881,61 +1881,15 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF6: (into_af6, 6,), ], []), + PF1: (pf1, 1, Input, AFRL, [], []), + PF2: (pf2, 2, Input, AFRL, [], []), + PF4: (pf4, 4, Input, AFRL, [], []), + PF5: (pf5, 5, Input, AFRL, [], []), + PF6: (pf6, 6, Input, AFRL, [], []), + PF9: (pf9, 9, Input, AFRH, [], []), + PF10: (pf10, 10, Input, AFRH, [], []), ], }, { From 8abae5ed7c7467a8625e54c3a1a69a69d002ed25 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:17:46 -0700 Subject: [PATCH 24/38] Allow alternate functions for stm32f303 for port F. --- src/gpio.rs | 123 ++++++++++------------------------------------------ 1 file changed, 23 insertions(+), 100 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index fac763ef7..841d535bc 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1904,117 +1904,40 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF3: (into_af3, 3,), ], []), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF3: (pf3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), ], []), + PF3: (pf3, 3, Input, AFRL, [], []), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), + PF5: (pf5, 5, Input, AFRL, [], []), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF8: (pf8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF6: (into_af6, 6,), ], []), + PF7: (pf7, 7, Input, AFRL, [], []), + PF8: (pf8, 8, Input, AFRH, [], []), + PF9: (pf9, 9, Input, AFRH, [], []), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF11: (pf11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF12: (pf12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF13: (pf13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF14: (pf14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF15: (pf15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF0: (into_af0, 0,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), ], []), + PF11: (pf11, 11, Input, AFRH, [], []), + PF12: (pf12, 12, Input, AFRH, [], []), + PF13: (pf13, 13, Input, AFRH, [], []), + PF14: (pf14, 14, Input, AFRH, [], []), + PF15: (pf15, 15, Input, AFRH, [], []), ], }, { From 082772645d1dc6548b87c53ba20596dfe5d5b84f Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:20:18 -0700 Subject: [PATCH 25/38] Allow alternate functions for stm32f373 for port F. --- src/gpio.rs | 57 ++++++++++++++--------------------------------------- 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 841d535bc..8e5f8460a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1952,60 +1952,33 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF4: (into_af4, 4,), ], []), PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), ], []), PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), ], []), PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF5: (into_af5, 5,), + AF7: (into_af7, 7,), ], []), PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), ], []), + PF9: (pf9, 9, Input, AFRH, [], []), PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), + AF1: (into_af1, 1,), ], []), ], }, From 4f621bd0b8e2d11cf1bcc649bb493b41558ab159 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:22:59 -0700 Subject: [PATCH 26/38] Allow alternate functions for remaining devices for port F. --- src/gpio.rs | 212 +++++++++++++++++++++++++--------------------------- 1 file changed, 100 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 8e5f8460a..1f233ff16 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1997,118 +1997,106 @@ gpio!([ gpio_mapped_iorst: iopfrst, partially_erased_pin: PFx, pins: [ - PF0: (pf0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF1: (pf1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF2: (pf2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF3: (pf3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF4: (pf4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF5: (pf5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF6: (pf6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF7: (pf7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF8: (pf8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF9: (pf9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF10: (pf10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF11: (pf11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF12: (pf12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF13: (pf13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF14: (pf14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PF15: (pf15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PF0: (pf0, 0, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f358",],), + AF4: (into_af4, 4, ["stm32f318", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f318", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f318", "stm32f328", "stm32f398",],), + ]), + PF1: (pf1, 1, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f358",],), + AF4: (into_af4, 4, ["stm32f318", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f318", "stm32f398",],), + ]), + PF2: (pf2, 2, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF4: (into_af4, 4, ["stm32f378",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF3: (pf3, 3, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF4: (pf4, 4, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF5: (pf5, 5, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF6: (pf6, 6, Input, AFRL, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358",],), + AF4: (into_af4, 4, ["stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f378",],), + AF6: (into_af6, 6, ["stm32f358",],), + AF7: (into_af7, 7, ["stm32f378", "stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF7: (pf7, 7, Input, AFRL, [], [ + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF4: (into_af4, 4, ["stm32f378",],), + AF7: (into_af7, 7, ["stm32f378",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF8: (pf8, 8, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF9: (pf9, 9, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF10: (pf10, 10, Input, AFRH, [], [ + AF0: (into_af0, 0, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f358",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF11: (pf11, 11, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + ]), + PF12: (pf12, 12, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF13: (pf13, 13, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF14: (pf14, 14, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), + PF15: (pf15, 15, Input, AFRH, [], [ + AF1: (into_af1, 1, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF12: (into_af12, 12, ["stm32f398",],), + ]), ], }, { From 96ebcf3e59ba2a39a562598c2c2e3528b175a16a Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:25:24 -0700 Subject: [PATCH 27/38] Don't allow any alternate functions for port G for stm32f303. --- src/gpio.rs | 128 +++++++--------------------------------------------- 1 file changed, 16 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 1f233ff16..411990245 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -2110,118 +2110,22 @@ gpio!([ gpio_mapped_iorst: iopgrst, partially_erased_pin: PGx, pins: [ - PG0: (pg0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG1: (pg1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG2: (pg2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG3: (pg3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG4: (pg4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG5: (pg5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG6: (pg6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG7: (pg7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG8: (pg8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG9: (pg9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG10: (pg10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG11: (pg11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG12: (pg12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG13: (pg13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG14: (pg14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PG15: (pg15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PG0: (pg0, 0, Input, AFRL, [], []), + PG1: (pg1, 1, Input, AFRL, [], []), + PG2: (pg2, 2, Input, AFRL, [], []), + PG3: (pg3, 3, Input, AFRL, [], []), + PG4: (pg4, 4, Input, AFRL, [], []), + PG5: (pg5, 5, Input, AFRL, [], []), + PG6: (pg6, 6, Input, AFRL, [], []), + PG7: (pg7, 7, Input, AFRL, [], []), + PG8: (pg8, 8, Input, AFRH, [], []), + PG9: (pg9, 9, Input, AFRH, [], []), + PG10: (pg10, 10, Input, AFRH, [], []), + PG11: (pg11, 11, Input, AFRH, [], []), + PG12: (pg12, 12, Input, AFRH, [], []), + PG13: (pg13, 13, Input, AFRH, [], []), + PG14: (pg14, 14, Input, AFRH, [], []), + PG15: (pg15, 15, Input, AFRH, [], []), ], }, { From 3111350fc0f8ddbda6b1ea38bd9ca744824e6ba3 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:26:18 -0700 Subject: [PATCH 28/38] Don't allow any alternate functions for port h for stm32f303. --- src/gpio.rs | 128 +++++++--------------------------------------------- 1 file changed, 16 insertions(+), 112 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 411990245..af629561a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -2139,118 +2139,22 @@ gpio!([ gpio_mapped_iorst: iophrst, partially_erased_pin: PHx, pins: [ - PH0: (ph0, 0, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH1: (ph1, 1, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH2: (ph2, 2, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH3: (ph3, 3, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH4: (ph4, 4, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH5: (ph5, 5, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH6: (ph6, 6, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH7: (ph7, 7, Input, AFRL, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH8: (ph8, 8, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH9: (ph9, 9, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH10: (ph10, 10, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH11: (ph11, 11, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH12: (ph12, 12, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH13: (ph13, 13, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH14: (ph14, 14, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), - PH15: (ph15, 15, Input, AFRH, [ - AF4: (into_af4, 4,), - AF5: (into_af5, 5,), - AF6: (into_af6, 6,), - AF7: (into_af7, 7,), - AF14: (into_af14, 14,), - ], []), + PH0: (ph0, 0, Input, AFRL, [], []), + PH1: (ph1, 1, Input, AFRL, [], []), + PH2: (ph2, 2, Input, AFRL, [], []), + PH3: (ph3, 3, Input, AFRL, [], []), + PH4: (ph4, 4, Input, AFRL, [], []), + PH5: (ph5, 5, Input, AFRL, [], []), + PH6: (ph6, 6, Input, AFRL, [], []), + PH7: (ph7, 7, Input, AFRL, [], []), + PH8: (ph8, 8, Input, AFRH, [], []), + PH9: (ph9, 9, Input, AFRH, [], []), + PH10: (ph10, 10, Input, AFRH, [], []), + PH11: (ph11, 11, Input, AFRH, [], []), + PH12: (ph12, 12, Input, AFRH, [], []), + PH13: (ph13, 13, Input, AFRH, [], []), + PH14: (ph14, 14, Input, AFRH, [], []), + PH15: (ph15, 15, Input, AFRH, [], []), ], }, ]); From d7e5b5e460210b5406d087a82a8d8284fa0c4b95 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Tue, 29 Oct 2019 20:31:05 -0700 Subject: [PATCH 29/38] Remove macro elements that do not render in doc-comment. --- src/gpio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index af629561a..f4eb5cc80 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -361,7 +361,7 @@ macro_rules! gpio { impl $PXi { $( - /// Configures the pin to serve as alternate function $afi_common ($AFx_common) + /// Configures the pin to serve as a specific alternate function pub fn $into_afi_common( self, moder: &mut MODER, @@ -385,7 +385,7 @@ macro_rules! gpio { )* $( - /// Configures the pin to serve as alternate function $afi ($AFx) + /// Configures the pin to serve as a specific alternate function #[cfg(any( $(feature = $afi_devices,)* ))] From fed5d0a02eb41ab6a3f4044b6e7f48b2497d8196 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:47:46 -0700 Subject: [PATCH 30/38] Corrections for Port A alternate functions for stm32f301 and stm32f302. --- src/gpio.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index f4eb5cc80..b52a13600 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -646,12 +646,12 @@ gpio!([ ]), PA4: (pa4, 4, Input, AFRL, [ AF3: (into_af3, 3,), + AF7: (into_af7, 7,), AF15: (into_af15, 15,), ], [ AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF10: (into_af10, 10, ["stm32f373", "stm32f378",],), ]), PA5: (pa5, 5, Input, AFRL, [ @@ -686,7 +686,6 @@ gpio!([ AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f302",],), AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358",],), AF9: (into_af9, 9, ["stm32f373", "stm32f378",],), ]), @@ -739,13 +738,13 @@ gpio!([ AF15: (into_af15, 15,), ], [ AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF5: (into_af5, 5, ["stm32f318", "stm32f373", "stm32f378", "stm32f398",],), - AF8: (into_af8, 8, ["stm32f301", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f373", "stm32f378", "stm32f398",],), + AF8: (into_af8, 8, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF9: (into_af9, 9, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF11: (into_af11, 11, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), - AF13: (into_af13, 13, ["stm32f302", "stm32f334",],), + AF13: (into_af13, 13, ["stm32f334",],), AF14: (into_af14, 14, ["stm32f302", "stm32f303",],), ]), PA12: (pa12, 12, Input, AFRH, [ @@ -756,8 +755,8 @@ gpio!([ AF15: (into_af15, 15,), ], [ AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF5: (into_af5, 5, ["stm32f318", "stm32f398",],), - AF9: (into_af9, 9, ["stm32f301", "stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f301", "stm32f318", "stm32f398",],), + AF9: (into_af9, 9, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF10: (into_af10, 10, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF11: (into_af11, 11, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), AF13: (into_af13, 13, ["stm32f334",],), From a4550fbd8f398997289a454348d52f433081e5f2 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:50:25 -0700 Subject: [PATCH 31/38] Corrections for Port C alternate functions for stm32f358. --- src/gpio.rs | 98 ++++++++++++++++++++++------------------------------- 1 file changed, 40 insertions(+), 58 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index b52a13600..92accb340 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1168,118 +1168,100 @@ gpio!([ partially_erased_pin: PCx, pins: [ PC0: (pc0, 0, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), ]), PC1: (pc1, 1, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f398",],), ]), PC2: (pc2, 2, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), ]), PC3: (pc3, 3, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), - AF6: (into_af6, 6, ["stm32f301", "stm32f334", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), + AF6: (into_af6, 6, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), ]), PC4: (pc4, 4, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f358",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), ]), PC5: (pc5, 5, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f358",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f301", "stm32f334", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), ]), PC6: (pc6, 6, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), - AF4: (into_af4, 4, ["stm32f398",],), - AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), AF6: (into_af6, 6, ["stm32f301", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f334", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), ]), PC7: (pc7, 7, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), - AF4: (into_af4, 4, ["stm32f398",],), - AF5: (into_af5, 5, ["stm32f373", "stm32f378", "stm32f358",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), AF6: (into_af6, 6, ["stm32f301", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f398",],), ]), PC8: (pc8, 8, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), - AF4: (into_af4, 4, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f334",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f358",],), - AF7: (into_af7, 7, ["stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f398",],), ]), PC9: (pc9, 9, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f301", "stm32f334", "stm32f358", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f301", "stm32f334", "stm32f398",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), ]), PC10: (pc10, 10, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF3: (into_af3, 3, ["stm32f358",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), ]), PC11: (pc11, 11, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF3: (into_af3, 3, ["stm32f334",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), ]), PC12: (pc12, 12, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF3: (into_af3, 3, ["stm32f334", "stm32f358",],), + AF3: (into_af3, 3, ["stm32f334",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), AF6: (into_af6, 6, ["stm32f301", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f301", "stm32f373", "stm32f378", "stm32f334", "stm32f358", "stm32f398",],), ]), PC13: (pc13, 13, Input, AFRH, [], [ AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f358",],), - AF4: (into_af4, 4, ["stm32f301", "stm32f334", "stm32f328", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f301", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],), ]), PC14: (pc14, 14, Input, AFRH, [], [ AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), From 6c8361ba576bec97d6b9a6cfaefe43f1bd8d0ec9 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:51:45 -0700 Subject: [PATCH 32/38] Corrections for Port C alternate functions for stm32f301 and stm32f302. --- src/gpio.rs | 70 ++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 92accb340..3b05da6e3 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1284,85 +1284,85 @@ gpio!([ partially_erased_pin: PCx, pins: [ PC0: (pc0, 0, Input, AFRL, [ - AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), PC1: (pc1, 1, Input, AFRL, [ - AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), PC2: (pc2, 2, Input, AFRL, [ - AF0: (into_af0, 0,), - AF2: (into_af2, 2,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), ], []), PC3: (pc3, 3, Input, AFRL, [ - AF0: (into_af0, 0,), - AF5: (into_af5, 5,), + AF1: (into_af1, 1,), + AF6: (into_af6, 6,), ], []), PC4: (pc4, 4, Input, AFRL, [ - AF0: (into_af0, 0,), - AF6: (into_af6, 6,), + AF1: (into_af1, 1,), + AF7: (into_af7, 7,), ], []), PC5: (pc5, 5, Input, AFRL, [ - AF0: (into_af0, 0,), - AF2: (into_af2, 2,), - AF6: (into_af6, 6,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF7: (into_af7, 7,), ], []), PC6: (pc6, 6, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), - AF5: (into_af5, 5,), + AF2: (into_af2, 2,), AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), ]), PC7: (pc7, 7, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), - AF5: (into_af5, 5,), + AF2: (into_af2, 2,), + AF6: (into_af6, 6,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), - AF6: (into_af6, 6, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), + AF7: (into_af7, 7, ["stm32f303",],), ]), PC8: (pc8, 8, Input, AFRH, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), - AF6: (into_af6, 6, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), + AF7: (into_af7, 7, ["stm32f303",],), ]), PC9: (pc9, 9, Input, AFRH, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), - AF4: (into_af4, 4,), + AF2: (into_af2, 2,), + AF5: (into_af5, 5,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), - AF5: (into_af5, 5, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), + AF6: (into_af6, 6, ["stm32f303",],), ]), PC10: (pc10, 10, Input, AFRH, [ - AF0: (into_af0, 0,), - AF4: (into_af4, 4,), + AF1: (into_af1, 1,), AF5: (into_af5, 5,), AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), ]), PC11: (pc11, 11, Input, AFRH, [ - AF0: (into_af0, 0,), - AF4: (into_af4, 4,), + AF1: (into_af1, 1,), AF5: (into_af5, 5,), AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), ]), PC12: (pc12, 12, Input, AFRH, [ - AF0: (into_af0, 0,), - AF4: (into_af4, 4,), + AF1: (into_af1, 1,), AF5: (into_af5, 5,), AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], [ - AF3: (into_af3, 3, ["stm32f303",],), + AF4: (into_af4, 4, ["stm32f303",],), ]), PC13: (pc13, 13, Input, AFRH, [ - AF3: (into_af3, 3,), + AF4: (into_af4, 4,), ], []), PC14: (pc14, 14, Input, AFRH, [], []), PC15: (pc15, 15, Input, AFRH, [], []), From 4515400e7324b7a740aac70237ec78906aa2c953 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:54:08 -0700 Subject: [PATCH 33/38] Corrections for Port D alternate functions for stm32f301, stm32f302, stm32f358. --- src/gpio.rs | 97 ++++++++++++++++++----------------------------------- 1 file changed, 33 insertions(+), 64 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 3b05da6e3..680fca8cd 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1435,136 +1435,105 @@ gpio!([ partially_erased_pin: PDx, pins: [ PD0: (pd0, 0, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD1: (pd1, 1, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f373", "stm32f378",],), - AF3: (into_af3, 3, ["stm32f303", "stm32f358",],), - AF4: (into_af4, 4, ["stm32f398",],), - AF5: (into_af5, 5, ["stm32f303", "stm32f358",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f303", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD2: (pd2, 2, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f328", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f373", "stm32f378", "stm32f328", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f303", "stm32f358",],), - AF4: (into_af4, 4, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), - AF5: (into_af5, 5, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f328", "stm32f358", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f303", "stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), ]), PD3: (pd3, 3, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD4: (pd4, 4, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD5: (pd5, 5, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD6: (pd6, 6, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD7: (pd7, 7, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD8: (pd8, 8, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), AF5: (into_af5, 5, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD9: (pd9, 9, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF3: (into_af3, 3, ["stm32f373", "stm32f378",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD10: (pd10, 10, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD11: (pd11, 11, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), - AF1: (into_af1, 1, ["stm32f373", "stm32f378", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD12: (pd12, 12, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD13: (pd13, 13, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD14: (pd14, 14, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), + AF3: (into_af3, 3, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PD15: (pd15, 15, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f302", "stm32f303", "stm32f358",],), AF1: (into_af1, 1, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), AF2: (into_af2, 2, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f373", "stm32f378", "stm32f398",],), - AF5: (into_af5, 5, ["stm32f302", "stm32f303", "stm32f358",],), - AF6: (into_af6, 6, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f302", "stm32f303", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f302", "stm32f303", "stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), ], From b441da84d33649cd4fd46dd86e4df4bc4b956c57 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:55:41 -0700 Subject: [PATCH 34/38] Corrections for Port E alternate functions for stm32f301 and stm32f302. --- src/gpio.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 680fca8cd..e4d2c155a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1554,12 +1554,12 @@ gpio!([ AF1: (into_af1, 1,), AF2: (into_af2, 2,), AF4: (into_af4, 4,), - AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], []), PE1: (pe1, 1, Input, AFRL, [ AF1: (into_af1, 1,), AF4: (into_af4, 4,), - AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], []), PE2: (pe2, 2, Input, AFRL, [ AF0: (into_af0, 0,), @@ -1620,12 +1620,12 @@ gpio!([ PE14: (pe14, 14, Input, AFRH, [ AF1: (into_af1, 1,), AF2: (into_af2, 2,), - AF5: (into_af5, 5,), + AF6: (into_af6, 6,), ], []), PE15: (pe15, 15, Input, AFRH, [ AF1: (into_af1, 1,), AF2: (into_af2, 2,), - AF6: (into_af6, 6,), + AF7: (into_af7, 7,), ], []), ], }, From 92265a7e46d0c26d47e522af88ffa4a3ac81eb00 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 18:57:15 -0700 Subject: [PATCH 35/38] Corrections for Port E alternate functions for stm32f358. --- src/gpio.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index e4d2c155a..c2489ac01 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1649,15 +1649,15 @@ gpio!([ AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF2: (into_af2, 2, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PE1: (pe1, 1, Input, AFRL, [], [ AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF4: (into_af4, 4, ["stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PE2: (pe2, 2, Input, AFRL, [], [ @@ -1744,15 +1744,14 @@ gpio!([ PE14: (pe14, 14, Input, AFRH, [], [ AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), - AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f398",],), + AF5: (into_af5, 5, ["stm32f398",],), + AF6: (into_af6, 6, ["stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PE15: (pe15, 15, Input, AFRH, [], [ AF1: (into_af1, 1, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f358",],), - AF7: (into_af7, 7, ["stm32f373", "stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f373", "stm32f378", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), ], From 5a85a00532657ae37b681cae9ba86007dee6a06f Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 19:00:03 -0700 Subject: [PATCH 36/38] Corrections for Port F alternate functions for stm32f302. --- src/gpio.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index c2489ac01..ce937a123 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1790,31 +1790,31 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF3: (into_af3, 3,), - AF5: (into_af5, 5,), + AF4: (into_af4, 4,), + AF6: (into_af6, 6,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF3: (into_af3, 3,), + AF4: (into_af4, 4,), ], []), PF2: (pf2, 2, Input, AFRL, [ - AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), PF4: (pf4, 4, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PF5: (pf5, 5, Input, AFRL, [], []), PF6: (pf6, 6, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), - AF3: (into_af3, 3,), - AF6: (into_af6, 6,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), ], []), PF9: (pf9, 9, Input, AFRH, [], []), PF10: (pf10, 10, Input, AFRH, [ - AF0: (into_af0, 0,), - AF2: (into_af2, 2,), - AF4: (into_af4, 4,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), ], []), ], }, From ce77d8acef167b1bd95fe314588d08486b90f992 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 19:01:51 -0700 Subject: [PATCH 37/38] Corrections for Port F alternate functions for stm32f303. --- src/gpio.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index ce937a123..06be359ca 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1853,34 +1853,34 @@ gpio!([ partially_erased_pin: PFx, pins: [ PF0: (pf0, 0, Input, AFRL, [ - AF3: (into_af3, 3,), - AF5: (into_af5, 5,), + AF4: (into_af4, 4,), + AF6: (into_af6, 6,), ], []), PF1: (pf1, 1, Input, AFRL, [ - AF3: (into_af3, 3,), + AF4: (into_af4, 4,), ], []), PF2: (pf2, 2, Input, AFRL, [ - AF0: (into_af0, 0,), + AF1: (into_af1, 1,), ], []), PF3: (pf3, 3, Input, AFRL, [], []), PF4: (pf4, 4, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), + AF2: (into_af2, 2,), ], []), PF5: (pf5, 5, Input, AFRL, [], []), PF6: (pf6, 6, Input, AFRL, [ - AF0: (into_af0, 0,), AF1: (into_af1, 1,), - AF3: (into_af3, 3,), - AF6: (into_af6, 6,), + AF2: (into_af2, 2,), + AF4: (into_af4, 4,), + AF7: (into_af7, 7,), ], []), PF7: (pf7, 7, Input, AFRL, [], []), PF8: (pf8, 8, Input, AFRH, [], []), PF9: (pf9, 9, Input, AFRH, [], []), PF10: (pf10, 10, Input, AFRH, [ - AF0: (into_af0, 0,), - AF2: (into_af2, 2,), - AF4: (into_af4, 4,), + AF1: (into_af1, 1,), + AF3: (into_af3, 3,), + AF5: (into_af5, 5,), ], []), PF11: (pf11, 11, Input, AFRH, [], []), PF12: (pf12, 12, Input, AFRH, [], []), From bb40b02eb2c99702ae5bb87a2d41abc0d97ec613 Mon Sep 17 00:00:00 2001 From: Nathan Fairhurst Date: Sat, 2 Nov 2019 19:03:45 -0700 Subject: [PATCH 38/38] Corrections for Port F alternate functions for stm32f358 and stm32f398. --- src/gpio.rs | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 06be359ca..5193ae1b8 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1948,20 +1948,17 @@ gpio!([ pins: [ PF0: (pf0, 0, Input, AFRL, [], [ AF1: (into_af1, 1, ["stm32f398",],), - AF3: (into_af3, 3, ["stm32f358",],), - AF4: (into_af4, 4, ["stm32f318", "stm32f378", "stm32f398",],), - AF5: (into_af5, 5, ["stm32f318", "stm32f358", "stm32f398",],), - AF6: (into_af6, 6, ["stm32f318", "stm32f328", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f318", "stm32f358", "stm32f378", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f318", "stm32f398",],), + AF6: (into_af6, 6, ["stm32f318", "stm32f328", "stm32f358", "stm32f398",],), ]), PF1: (pf1, 1, Input, AFRL, [], [ AF1: (into_af1, 1, ["stm32f398",],), - AF3: (into_af3, 3, ["stm32f358",],), - AF4: (into_af4, 4, ["stm32f318", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f318", "stm32f358", "stm32f378", "stm32f398",],), AF5: (into_af5, 5, ["stm32f318", "stm32f398",],), ]), PF2: (pf2, 2, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), AF2: (into_af2, 2, ["stm32f398",],), AF4: (into_af4, 4, ["stm32f378",],), AF12: (into_af12, 12, ["stm32f398",],), @@ -1972,9 +1969,8 @@ gpio!([ AF12: (into_af12, 12, ["stm32f398",],), ]), PF4: (pf4, 4, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), AF3: (into_af3, 3, ["stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), @@ -1984,14 +1980,11 @@ gpio!([ AF12: (into_af12, 12, ["stm32f398",],), ]), PF6: (pf6, 6, Input, AFRL, [], [ - AF0: (into_af0, 0, ["stm32f358",],), AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f378", "stm32f398",],), - AF3: (into_af3, 3, ["stm32f358",],), - AF4: (into_af4, 4, ["stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f358", "stm32f378", "stm32f398",],), + AF4: (into_af4, 4, ["stm32f358", "stm32f378", "stm32f398",],), AF5: (into_af5, 5, ["stm32f378",],), - AF6: (into_af6, 6, ["stm32f358",],), - AF7: (into_af7, 7, ["stm32f378", "stm32f398",],), + AF7: (into_af7, 7, ["stm32f358", "stm32f378", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PF7: (pf7, 7, Input, AFRL, [], [ @@ -2004,8 +1997,6 @@ gpio!([ PF8: (pf8, 8, Input, AFRH, [], [ AF1: (into_af1, 1, ["stm32f398",],), AF2: (into_af2, 2, ["stm32f398",],), - AF3: (into_af3, 3, ["stm32f398",],), - AF5: (into_af5, 5, ["stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PF9: (pf9, 9, Input, AFRH, [], [ @@ -2016,10 +2007,10 @@ gpio!([ AF12: (into_af12, 12, ["stm32f398",],), ]), PF10: (pf10, 10, Input, AFRH, [], [ - AF0: (into_af0, 0, ["stm32f358",],), - AF1: (into_af1, 1, ["stm32f378", "stm32f398",],), - AF2: (into_af2, 2, ["stm32f358", "stm32f398",],), - AF4: (into_af4, 4, ["stm32f358",],), + AF1: (into_af1, 1, ["stm32f358", "stm32f378", "stm32f398",],), + AF2: (into_af2, 2, ["stm32f398",],), + AF3: (into_af3, 3, ["stm32f358", "stm32f398",],), + AF5: (into_af5, 5, ["stm32f358", "stm32f398",],), AF12: (into_af12, 12, ["stm32f398",],), ]), PF11: (pf11, 11, Input, AFRH, [], [