5 releases
0.2.1 | Jan 29, 2024 |
---|---|
0.2.0 | Jan 12, 2024 |
0.1.2 | Dec 24, 2023 |
0.1.1 | Dec 19, 2023 |
0.1.0 | Dec 19, 2023 |
#13 in #tx
Used in threadx-rs
53KB
1.5K
SLoC
Rust bindings for ThreadX
This crate provides the Rust bindings for the ThreadX RTOS.
Supported Targets
- thumbv6m-none-eabi # Cortex-M0 and Cortex-M0+
- thumbv7m-none-eabi # Cortex-M3
- thumbv7em-none-eabi # Cortex-M4 and Cortex-M7 (no FPU)
- thumbv7em-none-eabihf # Cortex-M4F and Cortex-M7F (with FPU)
- thumbv8m.base-none-eabi # Cortex-M23
- thumbv8m.main-none-eabi # Cortex-M33 (no FPU)
- thumbv8m.main-none-eabihf # Cortex-M33 (with FPU)
Building for one of the above targets will select the right ThreadX build configuration for the target.
Pre-requisites
gcc-arm-none-eabi must be installed on your system.
sudo apt install gcc-arm-none-eabi
This will only give you the ThreadX static library
Your application must include the following files as described in https://learn.microsoft.com/en-us/azure/rtos/threadx/chapter2
- xxx_crt0.S
- xxx_vectors.S
- tx_initialize_low_level.S
I have started working on safe rust bindings for threadx which will do all this for you in pure Rust. This will be available soon. Contact me to collaborate! PRs welcome.
TX USER CONFIGURATION
Set the TX_USER_FILE environment variable to point to the specific configuration for the ThreadX build.
Dependencies
~0–2.1MB
~42K SLoC