An open API service indexing awesome lists of open source software.

https://github.com/rust-console/rrt0

A simple cross-platform runtime / startup for Rust on embedded devices.
https://github.com/rust-console/rrt0

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# `rrt0`

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

## Supported platforms

* [Nintendo 64](./src/platforms/n64/)

## 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:

```rust
#![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](./examples) for more complete projects to get you started.