Commit 3676d23
committed
Handle missing dimIndex on registers
Per the SVD spec, dimIndex is not required:
> By default, <dimIndex> is a value starting with 0.
> Remark: Do not define <dimIndex> when using the placeholder [%s] in
<name> or <displayName>.
I interpret this as it being optional whether the name uses "%s" or
"[%s]". Atmel SAMD21 SVDs use "%s" with no dimIndex for 0-indexed
arrays.
This also tests that dimIndex is sequential and numeric in a single pass
without allocating temporary vectors, and fixes the typo
adresses -> addresses.1 parent 441bd42 commit 3676d23
1 file changed
+8
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 567 | + | |
577 | 568 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
583 | 572 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
590 | 576 | | |
591 | | - | |
592 | | - | |
| 577 | + | |
593 | 578 | | |
594 | 579 | | |
595 | 580 | | |
| |||
0 commit comments