Skip to content

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

License

Notifications You must be signed in to change notification settings

rust-console/rrt0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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