Add this crate to your rust applications Cargo.toml to ensure that the FreeRTOS library is included in your build.
This crate builds a static freertos library from source,
and provide it as a dependency crate for hybrid rust apps.
Currently this uses make
and ARM gcc cross-compilation.
It does not use, for example, the cc
crate.
This means that you will need to have arm cross-compilation
tools installed on your system, such as
arm-none-eabi-gcc
This crate exports the CMSIS RTOS2 API to make operating FreeRTOS tasks using rust as simple as possible.
In your Cargo.toml
select a device family by using a feature:
toml
freertos-sys = {version="0.1.1", features=["stm32f4x"] }
Example application tested on stm32f401CxUx: rolkien
BSD-3-Clause: See LICENSE file.
Currently the library build is tuned for the options we've found most useful. If you'd like to see a library configuration option exposed in eg a crate feature, please open a pull request or issue.