pub fn external_flash(port: &Port) -> impl Iterator<Item = FlashChip> {
    match port {
        Port::Stm32F412 => Some(FlashChip {
            name: "Micron n25q128a".to_owned(),
            internal: false,
            start: 0x0000_0000,
            end: 0x00FF_FFFF,
            region_size: KB!(4),
        })
        .into_iter(),
        Port::Wgm160P => None.into_iter(),
    }
}
/// Returns an iterator over all the flash chips compatible with the current
/// port (a driver exists for them).
Returns an iterator over all the flash chips compatible with the current
port (a driver exists for them).
Returns an iterator over all the flash chips compatible with the current port ( a driver exists for them ) .
pub fn external_flash(port: &Port) -> impl Iterator<Item = FlashChip> {
    match port {
        Port::Stm32F412 => Some(FlashChip {
            name: "Micron n25q128a".to_owned(),
            internal: false,
            start: 0x0000_0000,
            end: 0x00FF_FFFF,
            region_size: KB!(4),
        })
        .into_iter(),
        Port::Wgm160P => None.into_iter(),
    }
}
pub fn external_flash ( port : & Port ) -> impl Iterator < Item = FlashChip > { match port { Port :: Stm32F412 => Some ( FlashChip { name : " " . to_owned ( ) , internal : false , start : 0x0000_0000 , end : 0x00FF_FFFF , region_size : KB ! ( 4 ) , } ) . into_iter ( ) , Port :: Wgm160P => None . into_iter ( ) , } }
Returns an iterator over all the flash chips compatible with the current
port (a driver exists for them).
Returns an iterator over all the flash chips compatible with the current port ( a driver exists for them ) .
port
&Port
port
&Port