update PAC library
This commit is contained in:
@ -15,12 +15,28 @@ if [ -x "$(${svd2rust_bin} --version)" ]; then
|
||||
"Install it with cargo install svd2rust"
|
||||
exit
|
||||
fi
|
||||
${svd2rust_bin} -i svd/va416xx-base.svd
|
||||
|
||||
if ! command -v form &> /dev/null
|
||||
then
|
||||
echo "form tool was not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v svdtools &> /dev/null
|
||||
then
|
||||
echo "svdtools was not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
svdtools patch svd/va416xx-patch.yml
|
||||
${svd2rust_bin} -i svd/va416xx.svd.patched
|
||||
|
||||
result=$?
|
||||
if [ $result -ne 0 ]; then
|
||||
echo "svd2rust failed with code $result"
|
||||
exit
|
||||
fi
|
||||
|
||||
rm -rf src
|
||||
form -i lib.rs -o src/ && rm lib.rs
|
||||
cargo fmt
|
||||
|
Reference in New Issue
Block a user