diff --git a/data/registers/syscfg_f3.yaml b/data/registers/syscfg_f3.yaml index 9fc8d8f..111d4d9 100644 --- a/data/registers/syscfg_f3.yaml +++ b/data/registers/syscfg_f3.yaml @@ -150,30 +150,19 @@ fieldset/CFGR1: description: Enable the power switch to deliver VBAT voltage on ADC channel 18 input bit_offset: 24 bit_size: 1 - - name: FPU_IE0 - description: Invalid operation interrupt enable + - name: FPU_IE + description: |- + Idx 0: Invalid operation interrupt enable; + Idx 1: Devide-by-zero interrupt enable; + Idx 2: Underflow interrupt enable; + Idx 3: Overflow interrupt enable; + Idx 4: Input denormal interrupt enable; + Idx 5: Inexact interrupt enable bit_offset: 26 bit_size: 1 - - name: FPU_IE1 - description: Devide-by-zero interrupt enable - bit_offset: 27 - bit_size: 1 - - name: FPU_IE2 - description: Underflow interrupt enable - bit_offset: 28 - bit_size: 1 - - name: FPU_IE3 - description: Overflow interrupt enable - bit_offset: 29 - bit_size: 1 - - name: FPU_IE4 - description: Input denormal interrupt enable - bit_offset: 30 - bit_size: 1 - - name: FPU_IE5 - description: Inexact interrupt enable - bit_offset: 31 - bit_size: 1 + array: + len: 6 + stride: 1 fieldset/CFGR2: description: configuration register 2 fields: @@ -325,70 +314,13 @@ fieldset/EXTICR: fieldset/RCR: description: CCM SRAM protection register fields: - - name: PAGE0_WP - description: CCM SRAM page write protection enabled + - name: PAGE_WP + description: CCM SRAM page x write protection enabled bit_offset: 0 bit_size: 1 - - name: PAGE1_WP - description: CCM SRAM page write protection enabled - bit_offset: 1 - bit_size: 1 - - name: PAGE2_WP - description: CCM SRAM page write protection enabled - bit_offset: 2 - bit_size: 1 - - name: PAGE3_WP - description: CCM SRAM page write protection enabled - bit_offset: 3 - bit_size: 1 - - name: PAGE4_WP - description: CCM SRAM page write protection enabled - bit_offset: 4 - bit_size: 1 - - name: PAGE5_WP - description: CCM SRAM page write protection enabled - bit_offset: 5 - bit_size: 1 - - name: PAGE6_WP - description: CCM SRAM page write protection enabled - bit_offset: 6 - bit_size: 1 - - name: PAGE7_WP - description: CCM SRAM page write protection enabled - bit_offset: 7 - bit_size: 1 - - name: PAGE8_WP - description: CCM SRAM page write protection enabled - bit_offset: 8 - bit_size: 1 - - name: PAGE9_WP - description: CCM SRAM page write protection enabled - bit_offset: 9 - bit_size: 1 - - name: PAGE10_WP - description: CCM SRAM page write protection enabled - bit_offset: 10 - bit_size: 1 - - name: PAGE11_WP - description: CCM SRAM page write protection enabled - bit_offset: 11 - bit_size: 1 - - name: PAGE12_WP - description: CCM SRAM page write protection enabled - bit_offset: 12 - bit_size: 1 - - name: PAGE13_WP - description: CCM SRAM page write protection enabled - bit_offset: 13 - bit_size: 1 - - name: PAGE14_WP - description: CCM SRAM page write protection enabled - bit_offset: 14 - bit_size: 1 - - name: PAGE15_WP - description: CCM SRAM page write protection enabled - bit_offset: 15 - bit_size: 1 + array: + len: 16 + stride: 1 enum/ADC12_EXT13_RMP: bit_size: 1 variants: diff --git a/transforms/SYSCFG_F3.yaml b/transforms/SYSCFG_F3.yaml new file mode 100644 index 0000000..0d52e10 --- /dev/null +++ b/transforms/SYSCFG_F3.yaml @@ -0,0 +1,9 @@ +transforms: + - !MakeFieldArray + fieldsets: RCR + from: PAGE\d+_WP + to: PAGE_WP + - !MakeFieldArray + fieldsets: CFGR1 + from: FPU_IE\d + to: FPU_IE