/// The MCU flash available for a port. All ports must have exactly one
/// main MCU flash for Loadstone to correctly function.
The MCU flash available for a port. All ports must have exactly one
main MCU flash for Loadstone to correctly function.
The MCU flash available for a port . All ports must have exactly one main MCU flash for Loadstone to correctly function .
pub fn internal_flash(port: &Port) -> FlashChip {
    match port {
        Port::Stm32F412 => FlashChip {
            name: "STM32F412 MCU Flash".to_owned(),
            internal: true,
            start: 0x0800_0000,
            end: 0x0810_0000,
            region_size: KB!(16),
        },
        Port::Wgm160P => FlashChip {
            name: "EFM32GG11 MCU Flash".to_owned(),
            internal: true,
            start: 0x0000_0000,
            end: 512 * KB!(4),
            region_size: KB!(4),
        },
    }
}
pub fn internal_flash ( port : & Port ) -> FlashChip { match port { Port :: Stm32F412 => FlashChip { name : " " . to_owned ( ) , internal : true , start : 0x0800_0000 , end : 0x0810_0000 , region_size : KB ! ( 16 ) , } , Port :: Wgm160P => FlashChip { name : " " . to_owned ( ) , internal : true , start : 0x0000_0000 , end : 512 * KB ! ( 4 ) , region_size : KB ! ( 4 ) , } , } }
The MCU flash available for a port.
The MCU flash available for a port .
port
&Port