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