4 releases
0.1.3 | Sep 12, 2020 |
---|---|
0.1.2 | Aug 31, 2020 |
0.1.1 | Aug 23, 2020 |
0.1.0 | Aug 20, 2020 |
#734 in #embedded
1MB
2.5K
SLoC
rttrust
Rust wrapper for rt-thread
Usage guide can be found in example folder.
Supported rt-thread APIs
- Kernal object
- Memory
- Thread
- Timer
- IPC
- Spin lock (
rt_enter_critical
) - Semaphore
- Mutex
- Event
- Mailbox
- Message queue
- Signal
- Spin lock (
- Interrupt
- Device
- Device register
- Device access
- UART, PIN, ... (device specific APIs)
Advanced features
- Allocator
print!
andprintln!
Platforms
- stm32f4xx
Requirements
- rust toolchain:
nightly
- rust target:
thumbv7em-none-eabihf
- libclang
gcc-arm-none-eabi
lib.rs
:
rttrust
Rust wrapper for rt-thread
TODO
- communication
- rt_mailbox
- rt_messagequeue
- rt_signal
Dependencies
~0.2–2.1MB
~40K SLoC