File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ main() {
3939 echo ' cortex-m-rt = "0.3.0"' >> $td /Cargo.toml
4040 echo ' vcell = "0.1.0"' >> $td /Cargo.toml
4141 echo ' msp430 = "0.1.0"' >> $td /Cargo.toml
42+ echo ' riscv = "0.1.4"' >> $td /Cargo.toml
43+ echo ' riscv-rt = "0.1.3"' >> $td /Cargo.toml
4244 echo ' [profile.dev]' >> $td /Cargo.toml
4345 echo ' incremental = false' >> $td /Cargo.toml
4446
@@ -391,6 +393,9 @@ main() {
391393 cd $td &&
392394 curl -LO \
393395 https://github.com/pftbest/msp430g2553/raw/v0.1.0/msp430g2553.svd
396+ cd $td &&
397+ curl -LO \
398+ https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
394399 )
395400
396401 target/$TARGET /release/svd2rust --target msp430 -i $td /msp430g2553.svd | \
@@ -402,6 +407,11 @@ main() {
402407 ( rustfmt 2> /dev/null > $td /src/lib.rs || true )
403408
404409 cargo check --manifest-path $td /Cargo.toml
410+
411+ target/$TARGET /release/svd2rust --target riscv -i $td /e310x.svd | \
412+ ( rustfmt 2> /dev/null > $td /src/lib.rs || true )
413+
414+ cargo check --manifest-path $td /Cargo.toml
405415 ;;
406416
407417 Nordic)
You can’t perform that action at this time.
0 commit comments