MOVED! This repository has been moved to https://github.com/nrf-rs/nrf-pacs.
This crate is a Peripheral Access Crate (or PAC) for the nRF9160 generated using svd2rust and the official SVD file. A Peripheral Access Crate contains low-level register defintions.
For most purposes, you want the HAL instead.
To regenerate the crate, first make sure that svd2rust and form are
installed and up-to-date. Put nrf9160.svd
into the repo directory and run:
# Fixup
sed -i 's/read-writeonce/read-writeOnce/' nrf9160.svd
# Generate
svd2rust -i nrf9160.svd
form -i lib.rs -o src
cargo fmt
# Clean up
rm lib.rs
Note that some things in the generated Rust code might need to be fixed manually after these steps.