add comp_h7 to chips.rs

This commit is contained in:
eZio Pan 2024-02-27 11:01:46 +08:00
parent 6c6503702f
commit c5ffacbb1f
4 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
block/COMP1: block/COMP:
description: COMP1. description: COMP1.
items: items:
- name: SR - name: SR

View File

@ -1,4 +1,4 @@
block/COMP1: block/COMP:
description: COMP1. description: COMP1.
items: items:
- name: SR - name: SR
@ -59,7 +59,7 @@ fieldset/CFGR1:
- name: INMSEL - name: INMSEL
description: COMP channel 1 inverting input selection field. description: COMP channel 1 inverting input selection field.
bit_offset: 16 bit_offset: 16
bit_size: 4 bit_size: 3
enum: INMSEL enum: INMSEL
- name: INPSEL - name: INPSEL
description: COMP channel 1 non-inverting input selection bit. description: COMP channel 1 non-inverting input selection bit.

View File

@ -616,6 +616,8 @@ impl PeriMatcher {
("STM32G0.1.*:.*:COMP:.*", ("comp", "v1", "COMP")), ("STM32G0.1.*:.*:COMP:.*", ("comp", "v1", "COMP")),
("STM32G4.*:.*:COMP:.*", ("comp", "v2", "COMP")), ("STM32G4.*:.*:COMP:.*", ("comp", "v2", "COMP")),
("STM32WL.*:.*:COMP:.*", ("comp", "v3", "COMP")), ("STM32WL.*:.*:COMP:.*", ("comp", "v3", "COMP")),
("STM32H7[45].*:COMP:.*", ("comp", "h7_b", "COMP")),
("STM32H7[AB].*:COMP:.*", ("comp", "h7_a", "COMP")),
(r".*:.*:DCACHE:.*", ("dcache", "v1", "DCACHE")), (r".*:.*:DCACHE:.*", ("dcache", "v1", "DCACHE")),
(".*:.*:PSSI:.*", ("pssi", "v1", "PSSI")), (".*:.*:PSSI:.*", ("pssi", "v1", "PSSI")),
(".*:.*:DTS:.*", ("dts", "v1", "DTS")), (".*:.*:DTS:.*", ("dts", "v1", "DTS")),

View File

@ -1,5 +1,9 @@
transforms: transforms:
- !Rename
from: ^(COMP)\d$
to: $1
- !MakeFieldArray - !MakeFieldArray
fieldsets: ^(SR|ICFR)$ fieldsets: ^(SR|ICFR)$
from: (C?C)\d(IF|VAL) from: (C?C)\d(IF|VAL)