#!/usr/bin/env bash set -x set -e cargo install --force --git https://github.com/wez/svd2rust svd2rust cargo install --force --version 0.3.0 form rm -rf src mkdir src svd2rust -i nrf52840.svd --nightly form -i lib.rs -o src rm lib.rs cargo fmt rustfmt build.rs