Function vexide_startup::program_entry

source ·
pub unsafe fn program_entry<const BANNER: bool>()
Expand description

Sets up the user stack, zeroes the BSS section, and calls the user code. This function is designed to be used as an entrypoint for programs on the VEX V5 Brain.

§Const Parameters

  • BANNER: Enables the vexide startup banner, which prints the vexide logo ASCII art and a startup message.

§Safety

This function MUST only be called once and should only be called at the very start of program initialization. Calling this function more than one time will seriously mess up both your stack and your heap.

Examples found in repository?
examples/booting.rs (line 27)
26
27
28
unsafe extern "C" fn _start() {
    unsafe { vexide_startup::program_entry::<true>() }
}