This is a collection of code examples to accompany the blog post of the same name at https://ferrous-systems.com/blog/hardware-access-rust/.
There are four examples here:
tock-registers-example- an example usingtock-registerssvd2rust-example- an example usingsvd2rustderive-mmio-example- an example usingderive-mmioandbitbybitsafe-mmio-example- an example usingsafe-mmioandbitflags
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
We encourage the use of this material, under the terms of the above license, in the production and/or delivery of commercial or open-source Rust training programmes.
We unfortunately cannot accept copyrightable contributions from third parties unless they enter into a Contributors' License Agreement with us. Please contact training@ferrous-systems.com if you would like to collaborate with us on this material.
Copyright (c) Ferrous Systems, 2026
