apply transform

This commit is contained in:
eZio Pan 2024-02-27 10:00:29 +08:00
parent b2db5b832c
commit 21dd36fcb3
2 changed files with 18 additions and 15 deletions

View File

@ -124,14 +124,13 @@ fieldset/CFGR2:
fieldset/ICFR: fieldset/ICFR:
description: Comparator interrupt clear flag register. description: Comparator interrupt clear flag register.
fields: fields:
- name: CC1IF - name: CCIF
description: Clear COMP channel 1 Interrupt Flag. description: Clear COMP channel 1 Interrupt Flag.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
- name: CC2IF array:
description: Clear COMP channel 2 Interrupt Flag. len: 2
bit_offset: 17 stride: 1
bit_size: 1
fieldset/OR: fieldset/OR:
description: Comparator option register. description: Comparator option register.
fields: fields:
@ -146,19 +145,17 @@ fieldset/OR:
fieldset/SR: fieldset/SR:
description: Comparator status register. description: Comparator status register.
fields: fields:
- name: C1VAL - name: CVAL
description: COMP channel 1 output status bit. description: COMP channel 1 output status bit.
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
- name: C2VAL array:
description: COMP channel 2 output status bit. len: 2
bit_offset: 1 stride: 1
bit_size: 1 - name: CIF
- name: C1IF
description: COMP channel 1 Interrupt Flag. description: COMP channel 1 Interrupt Flag.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
- name: C2IF array:
description: COMP channel 2 Interrupt Flag. len: 2
bit_offset: 17 stride: 1
bit_size: 1

6
transforms/COMP_h.yaml Normal file
View File

@ -0,0 +1,6 @@
transforms:
- !MakeFieldArray
fieldsets: ^(SR|ICFR)$
from: (C?C)\d(IF|VAL)
to: $1$2