Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

sjames/threadx-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust bindings for ThreadX

This crate provides the Rust bindings for the ThreadX RTOS.

Supported Targets

  1. thumbv6m-none-eabi # Cortex-M0 and Cortex-M0+
  2. thumbv7m-none-eabi # Cortex-M3
  3. thumbv7em-none-eabi # Cortex-M4 and Cortex-M7 (no FPU)
  4. thumbv7em-none-eabihf # Cortex-M4F and Cortex-M7F (with FPU)
  5. thumbv8m.base-none-eabi # Cortex-M23
  6. thumbv8m.main-none-eabi # Cortex-M33 (no FPU)
  7. 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

  1. xxx_crt0.S
  2. xxx_vectors.S
  3. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages