Skip to content

rust-console/rrt0

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

rrt0

Simple cross-platform runtime / startup (like crt0).

Supported platforms

Primary goals

  • Create a sane, platform-specific runtime environment
    • Set the stack pointer
    • Clear the .bss section (uninitialized static data)
    • Minimal hardware initialization (e.g. configuring the FPU)
    • Panic handler

Usage

Here is a small template to get you started:

#![no_main]
#![no_std]

use rrt0::prelude::*;

#[no_mangle]
fn main() -> ! {
    // Do cool stuff, here!
    loop {}
}

If main returns, the startup code will panic.

See examples for more complete projects to get you started.

About

A simple cross-platform runtime / startup for Rust on embedded devices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published