[volatile_table]
(A zero-cost, type-safe DSL for MMIO and volatile register mapping with compile-time access control (RO/RW/WO).)
Why volatile_table?
- Type-Safe Access: Compiler-enforced RO/RW/WO rights.
- Hardware-Friendly DSL: Use byte offsets (+=) directly from datasheets.
- Zero-Overhead: No runtime cost, just direct volatile instructions.
Usage
Add this to your Cargo.toml:
[]
= "0.0.1"
and this to your source code:
use volatile_table;
Example
use volatile_table;
volatile_table!
const TX_FIFO_FULL: u32 = 0x200000;
License
This project has a single license (LICENSE-APACHE-2.0).
(Denis Kotlyarov).