- Build the svd file:
python .\betrusted-soc.py -D --lx-ignore-deps
svd2rust --target riscv -i ../../build/software/soc.svd
- Expand the resulting lib.rs into component files:
rm -rf src; form -i lib.rs -o src/; rm lib.rs
- (optional) reformat the files:
cargo fmt
You are now ready to use the crate.