remove EVENT enum

This commit is contained in:
eZio Pan 2024-01-03 23:00:46 +08:00
parent b6fd3b1bc9
commit cc37af8bdc
3 changed files with 1 additions and 41 deletions

View File

@ -1158,22 +1158,18 @@ fieldset/MISR:
array: array:
len: 4 len: 4
stride: 1 stride: 1
enum: EVENT
- name: MREP - name: MREP
description: Master Repetition Interrupt Flag description: Master Repetition Interrupt Flag
bit_offset: 4 bit_offset: 4
bit_size: 1 bit_size: 1
enum: EVENT
- name: SYNC - name: SYNC
description: Sync Input Interrupt Flag description: Sync Input Interrupt Flag
bit_offset: 5 bit_offset: 5
bit_size: 1 bit_size: 1
enum: EVENT
- name: MUPD - name: MUPD
description: Master Update Interrupt Flag description: Master Update Interrupt Flag
bit_offset: 6 bit_offset: 6
bit_size: 1 bit_size: 1
enum: EVENT
fieldset/MPER: fieldset/MPER:
description: Master Timer Period Register description: Master Timer Period Register
fields: fields:
@ -1645,17 +1641,14 @@ fieldset/TIMXISR:
array: array:
len: 4 len: 4
stride: 1 stride: 1
enum: EVENT
- name: REP - name: REP
description: Repetition Interrupt Flag description: Repetition Interrupt Flag
bit_offset: 4 bit_offset: 4
bit_size: 1 bit_size: 1
enum: EVENT
- name: UPD - name: UPD
description: Update Interrupt Flag description: Update Interrupt Flag
bit_offset: 6 bit_offset: 6
bit_size: 1 bit_size: 1
enum: EVENT
- name: CPT - name: CPT
description: Capture X Interrupt Flag description: Capture X Interrupt Flag
bit_offset: 7 bit_offset: 7
@ -1663,7 +1656,6 @@ fieldset/TIMXISR:
array: array:
len: 2 len: 2
stride: 1 stride: 1
enum: EVENT
- name: SETR - name: SETR
description: Output X Set Interrupt Flag description: Output X Set Interrupt Flag
bit_offset: 9 bit_offset: 9
@ -1672,7 +1664,6 @@ fieldset/TIMXISR:
offsets: offsets:
- 0 - 0
- 2 - 2
enum: EVENT
- name: RSTR - name: RSTR
description: Output X Reset Interrupt Flag description: Output X Reset Interrupt Flag
bit_offset: 10 bit_offset: 10
@ -1681,12 +1672,10 @@ fieldset/TIMXISR:
offsets: offsets:
- 0 - 0
- 2 - 2
enum: EVENT
- name: RST - name: RST
description: Reset Interrupt Flag description: Reset Interrupt Flag
bit_offset: 13 bit_offset: 13
bit_size: 1 bit_size: 1
enum: EVENT
- name: DLYPRT - name: DLYPRT
description: Delayed Protection Flag description: Delayed Protection Flag
bit_offset: 14 bit_offset: 14
@ -2135,15 +2124,6 @@ enum/EEFLTR:
- name: WindowTIMWIN - name: WindowTIMWIN
description: 'Windowing from another timing unit: TIMWIN source' description: 'Windowing from another timing unit: TIMWIN source'
value: 15 value: 15
enum/EVENT:
bit_size: 1
variants:
- name: NoEvent
description: No compare interrupt occurred
value: 0
- name: Event
description: Compare interrupt occurred
value: 1
enum/FAULT: enum/FAULT:
bit_size: 2 bit_size: 2
variants: variants:

View File

@ -1155,22 +1155,18 @@ fieldset/MISR:
array: array:
len: 4 len: 4
stride: 1 stride: 1
enum: EVENT
- name: MREP - name: MREP
description: Master Repetition Interrupt Flag description: Master Repetition Interrupt Flag
bit_offset: 4 bit_offset: 4
bit_size: 1 bit_size: 1
enum: EVENT
- name: SYNC - name: SYNC
description: Sync Input Interrupt Flag description: Sync Input Interrupt Flag
bit_offset: 5 bit_offset: 5
bit_size: 1 bit_size: 1
enum: EVENT
- name: MUPD - name: MUPD
description: Master Update Interrupt Flag description: Master Update Interrupt Flag
bit_offset: 6 bit_offset: 6
bit_size: 1 bit_size: 1
enum: EVENT
fieldset/MPER: fieldset/MPER:
description: Master Timer Period Register description: Master Timer Period Register
fields: fields:
@ -1642,17 +1638,14 @@ fieldset/TIMXISR:
array: array:
len: 4 len: 4
stride: 1 stride: 1
enum: EVENT
- name: REP - name: REP
description: Repetition Interrupt Flag description: Repetition Interrupt Flag
bit_offset: 4 bit_offset: 4
bit_size: 1 bit_size: 1
enum: EVENT
- name: UPD - name: UPD
description: Update Interrupt Flag description: Update Interrupt Flag
bit_offset: 6 bit_offset: 6
bit_size: 1 bit_size: 1
enum: EVENT
- name: CPT - name: CPT
description: Capture X Interrupt Flag description: Capture X Interrupt Flag
bit_offset: 7 bit_offset: 7
@ -1660,7 +1653,6 @@ fieldset/TIMXISR:
array: array:
len: 2 len: 2
stride: 1 stride: 1
enum: EVENT
- name: SETR - name: SETR
description: Output X Set Interrupt Flag description: Output X Set Interrupt Flag
bit_offset: 9 bit_offset: 9
@ -1669,7 +1661,6 @@ fieldset/TIMXISR:
offsets: offsets:
- 0 - 0
- 2 - 2
enum: EVENT
- name: RSTR - name: RSTR
description: Output X Reset Interrupt Flag description: Output X Reset Interrupt Flag
bit_offset: 10 bit_offset: 10
@ -1678,12 +1669,10 @@ fieldset/TIMXISR:
offsets: offsets:
- 0 - 0
- 2 - 2
enum: EVENT
- name: RST - name: RST
description: Reset Interrupt Flag description: Reset Interrupt Flag
bit_offset: 13 bit_offset: 13
bit_size: 1 bit_size: 1
enum: EVENT
- name: DLYPRT - name: DLYPRT
description: Delayed Protection Flag description: Delayed Protection Flag
bit_offset: 14 bit_offset: 14
@ -2134,15 +2123,6 @@ enum/EEFLTR:
- name: WindowTIMWIN - name: WindowTIMWIN
description: 'Windowing from another timing unit: TIMWIN source' description: 'Windowing from another timing unit: TIMWIN source'
value: 15 value: 15
enum/EVENT:
bit_size: 1
variants:
- name: NoEvent
description: No compare interrupt occurred
value: 0
- name: Event
description: Compare interrupt occurred
value: 1
enum/FAULT: enum/FAULT:
bit_size: 2 bit_size: 2
variants: variants:

View File

@ -12,7 +12,7 @@ transforms:
from: (REPDE|RETRIG|RSTDE|EE6LTCH) from: (REPDE|RETRIG|RSTDE|EE6LTCH)
bit_size: 1 bit_size: 1
- !DeleteEnums - !DeleteEnums
from: ^(LOCKED)$ from: ^(LOCKED|EVENT)$
- !MergeEnums - !MergeEnums
from: CPT(\d)[A-Z]CR_(.*) from: CPT(\d)[A-Z]CR_(.*)
to: CAPTUREEFFECT to: CAPTUREEFFECT