/// Constants to be propagated to the linker script for this port. This mainly
/// defines the sections of ram and flash memory.
// We might consider making these configurable later, but the need hasn't come up yet.
Constants to be propagated to the linker script for this port. This mainly
defines the sections of ram and flash memory.
We might consider making these configurable later, but the need hasn't come up yet.
Constants to be propagated to the linker script for this port . This mainly defines the sections of ram and flash memory . We might consider making these configurable later but the need hasn ' t come up yet .
pub fn linker_script_constants(&self) -> Option<LinkerScriptConstants> {
        match self {
            Port::Stm32F412 => Some(LinkerScriptConstants {
                flash: LinkerArea { origin: 0x08000000, size: KB!(896) },
                ram: LinkerArea { origin: 0x20000000, size: KB!(256) },
            }),
            Port::Wgm160P => Some(LinkerScriptConstants {
                flash: LinkerArea { origin: 0x00000000, size: KB!(1024) },
                ram: LinkerArea { origin: 0x20000000, size: KB!(128) },
            }),
        }
    }
pub fn linker_script_constants ( & self ) -> Option < LinkerScriptConstants > { match self { Port :: Stm32F412 => Some ( LinkerScriptConstants { flash : LinkerArea { origin : 0x08000000 , size : KB ! ( 896 ) } , ram : LinkerArea { origin : 0x20000000 , size : KB ! ( 256 ) } , } ) , Port :: Wgm160P => Some ( LinkerScriptConstants { flash : LinkerArea { origin : 0x00000000 , size : KB ! ( 1024 ) } , ram : LinkerArea { origin : 0x20000000 , size : KB ! ( 128 ) } , } ) , } }
Constants to be propagated to the linker script for this port.
Constants to be propagated to the linker script for this port .
&self