Skip to content

Commit bd051b3

Browse files
committed
SiliconLabs fix
1 parent 8d643bd commit bd051b3

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
options: all
4444
- vendor: Nuvoton
4545
options: all
46+
- vendor: Microchip
47+
options: all
48+
- vendor: RISC-V
49+
options: all
4650
include:
4751
# Test MSRV
4852
- rust: 1.46.0

ci/script.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_svd_for_target() {
2525
# NOTE we care about errors in svd2rust, but not about errors / warnings in rustfmt
2626
local cwd=$(pwd)
2727
pushd $td
28-
RUST_BACKTRACE=1 $cwd/target/$TARGET/release/svd2rust --target $1 -i input.svd
28+
RUST_BACKTRACE=1 $cwd/target/$TARGET/release/svd2rust $strict $const_generic --target $1 -i input.svd
2929

3030
mv lib.rs src/lib.rs
3131

@@ -531,15 +531,15 @@ main() {
531531

532532
SiliconLabs)
533533
# #99 regression tests
534-
test_svd SIM3C1x4_SVD
535-
test_svd SIM3C1x6_SVD
536-
test_svd SIM3C1x7_SVD
537-
test_svd SIM3L1x4_SVD
538-
test_svd SIM3L1x6_SVD
539-
test_svd SIM3L1x7_SVD
540-
test_svd SIM3U1x4_SVD
541-
test_svd SIM3U1x6_SVD
542-
test_svd SIM3U1x7_SVD
534+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3C1x4.svd
535+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3C1x6.svd
536+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3C1x7.svd
537+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3L1x4.svd
538+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3L1x6.svd
539+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3L1x7.svd
540+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3U1x4.svd
541+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3U1x6.svd
542+
test_svd_for_target cortex-m https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/SiliconLabs/SiM3_NRND/SIM3U1x7.svd
543543

544544
# FIXME(???) panicked at "c.text.clone()"
545545
# test_svd SIM3L1x8_SVD

0 commit comments

Comments
 (0)