NOTICE: This repository is currenty out of date since the Tock kernel's process loading interface has changed and the Rust userland library is under active development. Please check out tock/libtock-rs for now instead. Contributions updating this repo are welcome!
Template for creating Tock applications in Tock
First steps:
-
Get a copy of the latest nightly, in this repo's root:
rustup install nightly
rustup override set nightly
Your rustc should be at least this new:
$ rustc --version rustc 1.21.0-nightly (7ac979d8c 2017-08-16)
-
Need to grab a copy of the rust sources:
rustup component add rust-src
-
Now you should be able to build with:
make
-
To upload code on to a board:
tockloader install
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.