pub fn split_gpios(&self,
                       gpioa: hal::gpio::gpioa::Parts,
                       gpiob: hal::gpio::gpiob::Parts,
                       gpioc: hal::gpio::gpioc::Parts,
                       gpiod: hal::gpio::gpiod::Parts,
                       gpioe: hal::gpio::gpioe::Parts,
                       gpiof: hal::gpio::gpiof::Parts,
                       gpiog: hal::gpio::gpiog::Parts) -> Pins {
        Pins {
            SEED_PIN_0: gpiob.pb12,
            SEED_PIN_1: gpioc.pc11,
            SEED_PIN_2: gpioc.pc10,
            SEED_PIN_3: gpioc.pc9,
            SEED_PIN_4: gpioc.pc8,
            SEED_PIN_5: gpiod.pd2,
            SEED_PIN_6: gpioc.pc12,
            SEED_PIN_7: gpiog.pg10,
            SEED_PIN_8: gpiog.pg11,
            SEED_PIN_9: gpiob.pb4,
            SEED_PIN_10: gpiob.pb5,
            SEED_PIN_11: gpiob.pb8,
            SEED_PIN_12: gpiob.pb9,
            SEED_PIN_13: gpiob.pb6,
            SEED_PIN_14: gpiob.pb7,
            SEED_PIN_15: gpioc.pc0,
            SEED_PIN_16: gpioa.pa3,
            SEED_PIN_17: gpiob.pb1,
            SEED_PIN_18: gpioa.pa7,
            SEED_PIN_19: gpioa.pa6,
            SEED_PIN_20: gpioc.pc1,
            SEED_PIN_21: gpioc.pc4,
            SEED_PIN_22: gpioa.pa5,
            SEED_PIN_23: gpioa.pa4,
            SEED_PIN_24: gpioa.pa1,
            SEED_PIN_25: gpioa.pa0,
            SEED_PIN_26: gpiod.pd11,
            SEED_PIN_27: gpiog.pg9,
            SEED_PIN_28: gpioa.pa2,
            SEED_PIN_29: gpiob.pb14,
            SEED_PIN_30: gpiob.pb15,
            LED_USER: gpioc.pc7,
            AK4556: AK4556Pins {
                PDN:    gpiob.pb11, // Codec Reset
                MCLK_A: gpioe.pe2,  // SAI1 MCLK_A
                SCK_A:  gpioe.pe5,  // SAI1 SCK_A
                FS_A:   gpioe.pe4,  // SAI1 FS_A
                SD_A:   gpioe.pe6,  // SAI1 SD_A
                SD_B:   gpioe.pe3,  // SAI1 SD_B
            },
            FMC: FMCPins {
                IO0: gpiof.pf8,
                IO1: gpiof.pf9,
                IO2: gpiof.pf7,
                IO3: gpiof.pf6,
                SCK: gpiof.pf10,
                CS:  gpiog.pg6,
            },
            SDRAM: (),
            USB2: USB2Pins {
                DN: gpioa.pa11, // USB2 D-
                DP: gpioa.pa12, // USB2 D+
            }
        }
    }
/// Takes the board's GPIO peripherals and split them into ZST's
/// representing the individual GPIO pins used by the board.
Takes the board's GPIO peripherals and split them into ZST's
representing the individual GPIO pins used by the board.
Takes the board ' s GPIO peripherals and split them into ZST ' s representing the individual GPIO pins used by the board .
pub fn split_gpios(&self,
                       gpioa: hal::gpio::gpioa::Parts,
                       gpiob: hal::gpio::gpiob::Parts,
                       gpioc: hal::gpio::gpioc::Parts,
                       gpiod: hal::gpio::gpiod::Parts,
                       gpioe: hal::gpio::gpioe::Parts,
                       gpiof: hal::gpio::gpiof::Parts,
                       gpiog: hal::gpio::gpiog::Parts) -> Pins {
        Pins {
            SEED_PIN_0: gpiob.pb12,
            SEED_PIN_1: gpioc.pc11,
            SEED_PIN_2: gpioc.pc10,
            SEED_PIN_3: gpioc.pc9,
            SEED_PIN_4: gpioc.pc8,
            SEED_PIN_5: gpiod.pd2,
            SEED_PIN_6: gpioc.pc12,
            SEED_PIN_7: gpiog.pg10,
            SEED_PIN_8: gpiog.pg11,
            SEED_PIN_9: gpiob.pb4,
            SEED_PIN_10: gpiob.pb5,
            SEED_PIN_11: gpiob.pb8,
            SEED_PIN_12: gpiob.pb9,
            SEED_PIN_13: gpiob.pb6,
            SEED_PIN_14: gpiob.pb7,
            SEED_PIN_15: gpioc.pc0,
            SEED_PIN_16: gpioa.pa3,
            SEED_PIN_17: gpiob.pb1,
            SEED_PIN_18: gpioa.pa7,
            SEED_PIN_19: gpioa.pa6,
            SEED_PIN_20: gpioc.pc1,
            SEED_PIN_21: gpioc.pc4,
            SEED_PIN_22: gpioa.pa5,
            SEED_PIN_23: gpioa.pa4,
            SEED_PIN_24: gpioa.pa1,
            SEED_PIN_25: gpioa.pa0,
            SEED_PIN_26: gpiod.pd11,
            SEED_PIN_27: gpiog.pg9,
            SEED_PIN_28: gpioa.pa2,
            SEED_PIN_29: gpiob.pb14,
            SEED_PIN_30: gpiob.pb15,
            LED_USER: gpioc.pc7,
            AK4556: AK4556Pins {
                PDN:    gpiob.pb11, // Codec Reset
                MCLK_A: gpioe.pe2,  // SAI1 MCLK_A
                SCK_A:  gpioe.pe5,  // SAI1 SCK_A
                FS_A:   gpioe.pe4,  // SAI1 FS_A
                SD_A:   gpioe.pe6,  // SAI1 SD_A
                SD_B:   gpioe.pe3,  // SAI1 SD_B
            },
            FMC: FMCPins {
                IO0: gpiof.pf8,
                IO1: gpiof.pf9,
                IO2: gpiof.pf7,
                IO3: gpiof.pf6,
                SCK: gpiof.pf10,
                CS:  gpiog.pg6,
            },
            SDRAM: (),
            USB2: USB2Pins {
                DN: gpioa.pa11, // USB2 D-
                DP: gpioa.pa12, // USB2 D+
            }
        }
    }
pub fn split_gpios ( & self , gpioa : hal :: gpio :: gpioa :: Parts , gpiob : hal :: gpio :: gpiob :: Parts , gpioc : hal :: gpio :: gpioc :: Parts , gpiod : hal :: gpio :: gpiod :: Parts , gpioe : hal :: gpio :: gpioe :: Parts , gpiof : hal :: gpio :: gpiof :: Parts , gpiog : hal :: gpio :: gpiog :: Parts ) -> Pins { Pins { SEED_PIN_0 : gpiob . pb12 , SEED_PIN_1 : gpioc . pc11 , SEED_PIN_2 : gpioc . pc10 , SEED_PIN_3 : gpioc . pc9 , SEED_PIN_4 : gpioc . pc8 , SEED_PIN_5 : gpiod . pd2 , SEED_PIN_6 : gpioc . pc12 , SEED_PIN_7 : gpiog . pg10 , SEED_PIN_8 : gpiog . pg11 , SEED_PIN_9 : gpiob . pb4 , SEED_PIN_10 : gpiob . pb5 , SEED_PIN_11 : gpiob . pb8 , SEED_PIN_12 : gpiob . pb9 , SEED_PIN_13 : gpiob . pb6 , SEED_PIN_14 : gpiob . pb7 , SEED_PIN_15 : gpioc . pc0 , SEED_PIN_16 : gpioa . pa3 , SEED_PIN_17 : gpiob . pb1 , SEED_PIN_18 : gpioa . pa7 , SEED_PIN_19 : gpioa . pa6 , SEED_PIN_20 : gpioc . pc1 , SEED_PIN_21 : gpioc . pc4 , SEED_PIN_22 : gpioa . pa5 , SEED_PIN_23 : gpioa . pa4 , SEED_PIN_24 : gpioa . pa1 , SEED_PIN_25 : gpioa . pa0 , SEED_PIN_26 : gpiod . pd11 , SEED_PIN_27 : gpiog . pg9 , SEED_PIN_28 : gpioa . pa2 , SEED_PIN_29 : gpiob . pb14 , SEED_PIN_30 : gpiob . pb15 , LED_USER : gpioc . pc7 , AK4556 : AK4556Pins { PDN : gpiob . pb11 , // Codec Reset MCLK_A : gpioe . pe2 , // SAI1 MCLK_A SCK_A : gpioe . pe5 , // SAI1 SCK_A FS_A : gpioe . pe4 , // SAI1 FS_A SD_A : gpioe . pe6 , // SAI1 SD_A SD_B : gpioe . pe3 , // SAI1 SD_B } , FMC : FMCPins { IO0 : gpiof . pf8 , IO1 : gpiof . pf9 , IO2 : gpiof . pf7 , IO3 : gpiof . pf6 , SCK : gpiof . pf10 , CS : gpiog . pg6 , } , SDRAM : ( ) , USB2 : USB2Pins { DN : gpioa . pa11 , // USB2 D- DP : gpioa . pa12 , // USB2 D+ } } }
Takes the board's GPIO peripherals and split them into ZST's
representing the individual GPIO pins used by the board.
Takes the board ' s GPIO peripherals and split them into ZST ' s representing the individual GPIO pins used by the board .
&self
gpioa
hal::gpio::gpioa::Parts
gpiob
hal::gpio::gpiob::Parts
gpioc
hal::gpio::gpioc::Parts
gpiod
hal::gpio::gpiod::Parts
gpioe
hal::gpio::gpioe::Parts
gpiof
hal::gpio::gpiof::Parts
gpiog
hal::gpio::gpiog::Parts