Function vexide_startup::program_entry

source ·
pub unsafe fn program_entry()
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.

§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 24)
23
24
25
unsafe extern "C" fn _entry() {
    unsafe { vexide_startup::program_entry() }
}