Merge pull request #341 from eZioPan/hrtim-cleanup

Hrtim cleanup
This commit is contained in:
Dario Nieuwenhuis 2024-01-03 16:45:42 +00:00 committed by GitHub
commit 678bb79560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 68 deletions

View File

@ -1158,22 +1158,18 @@ fieldset/MISR:
array:
len: 4
stride: 1
enum: EVENT
- name: MREP
description: Master Repetition Interrupt Flag
bit_offset: 4
bit_size: 1
enum: EVENT
- name: SYNC
description: Sync Input Interrupt Flag
bit_offset: 5
bit_size: 1
enum: EVENT
- name: MUPD
description: Master Update Interrupt Flag
bit_offset: 6
bit_size: 1
enum: EVENT
fieldset/MPER:
description: Master Timer Period Register
fields:
@ -1532,12 +1528,10 @@ fieldset/TIMXDT:
description: Deadtime Rising Sign Lock
bit_offset: 14
bit_size: 1
enum: LOCKED
- name: DTRLK
description: Deadtime Rising Lock
bit_offset: 15
bit_size: 1
enum: LOCKED
- name: DTF
description: Deadtime Falling value
bit_offset: 16
@ -1551,12 +1545,10 @@ fieldset/TIMXDT:
description: Deadtime Falling Sign Lock
bit_offset: 30
bit_size: 1
enum: LOCKED
- name: DTFLK
description: Deadtime Falling Lock
bit_offset: 31
bit_size: 1
enum: LOCKED
fieldset/TIMXEEF:
description: Timer X External Event Filtering Register
fields:
@ -1590,7 +1582,6 @@ fieldset/TIMXFLT:
description: Fault sources Lock
bit_offset: 31
bit_size: 1
enum: LOCKED
fieldset/TIMXICR:
description: Timerx Interrupt Clear Register
fields:
@ -1650,17 +1641,14 @@ fieldset/TIMXISR:
array:
len: 4
stride: 1
enum: EVENT
- name: REP
description: Repetition Interrupt Flag
bit_offset: 4
bit_size: 1
enum: EVENT
- name: UPD
description: Update Interrupt Flag
bit_offset: 6
bit_size: 1
enum: EVENT
- name: CPT
description: Capture X Interrupt Flag
bit_offset: 7
@ -1668,7 +1656,6 @@ fieldset/TIMXISR:
array:
len: 2
stride: 1
enum: EVENT
- name: SETR
description: Output X Set Interrupt Flag
bit_offset: 9
@ -1677,7 +1664,6 @@ fieldset/TIMXISR:
offsets:
- 0
- 2
enum: EVENT
- name: RSTR
description: Output X Reset Interrupt Flag
bit_offset: 10
@ -1686,12 +1672,10 @@ fieldset/TIMXISR:
offsets:
- 0
- 2
enum: EVENT
- name: RST
description: Reset Interrupt Flag
bit_offset: 13
bit_size: 1
enum: EVENT
- name: DLYPRT
description: Delayed Protection Flag
bit_offset: 14
@ -2140,15 +2124,6 @@ enum/EEFLTR:
- name: WindowTIMWIN
description: 'Windowing from another timing unit: TIMWIN source'
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:
bit_size: 2
variants:
@ -2191,15 +2166,6 @@ enum/IPPSTAT:
- name: Output2Active
description: Protection occurred when the output 2 was active and output 1 forced inactive
value: 1
enum/LOCKED:
bit_size: 1
variants:
- name: Unlocked
description: Bits are writeable
value: 0
- name: Locked
description: Bits are read-only
value: 1
enum/OUTPUTSTATE:
bit_size: 1
variants:

View File

@ -1155,22 +1155,18 @@ fieldset/MISR:
array:
len: 4
stride: 1
enum: EVENT
- name: MREP
description: Master Repetition Interrupt Flag
bit_offset: 4
bit_size: 1
enum: EVENT
- name: SYNC
description: Sync Input Interrupt Flag
bit_offset: 5
bit_size: 1
enum: EVENT
- name: MUPD
description: Master Update Interrupt Flag
bit_offset: 6
bit_size: 1
enum: EVENT
fieldset/MPER:
description: Master Timer Period Register
fields:
@ -1529,12 +1525,10 @@ fieldset/TIMXDT:
description: Deadtime Rising Sign Lock
bit_offset: 14
bit_size: 1
enum: LOCKED
- name: DTRLK
description: Deadtime Rising Lock
bit_offset: 15
bit_size: 1
enum: LOCKED
- name: DTF
description: Deadtime Falling value
bit_offset: 16
@ -1548,12 +1542,10 @@ fieldset/TIMXDT:
description: Deadtime Falling Sign Lock
bit_offset: 30
bit_size: 1
enum: LOCKED
- name: DTFLK
description: Deadtime Falling Lock
bit_offset: 31
bit_size: 1
enum: LOCKED
fieldset/TIMXEEF:
description: Timer X External Event Filtering Register
fields:
@ -1587,7 +1579,6 @@ fieldset/TIMXFLT:
description: Fault sources Lock
bit_offset: 31
bit_size: 1
enum: LOCKED
fieldset/TIMXICR:
description: Timerx Interrupt Clear Register
fields:
@ -1647,17 +1638,14 @@ fieldset/TIMXISR:
array:
len: 4
stride: 1
enum: EVENT
- name: REP
description: Repetition Interrupt Flag
bit_offset: 4
bit_size: 1
enum: EVENT
- name: UPD
description: Update Interrupt Flag
bit_offset: 6
bit_size: 1
enum: EVENT
- name: CPT
description: Capture X Interrupt Flag
bit_offset: 7
@ -1665,7 +1653,6 @@ fieldset/TIMXISR:
array:
len: 2
stride: 1
enum: EVENT
- name: SETR
description: Output X Set Interrupt Flag
bit_offset: 9
@ -1674,7 +1661,6 @@ fieldset/TIMXISR:
offsets:
- 0
- 2
enum: EVENT
- name: RSTR
description: Output X Reset Interrupt Flag
bit_offset: 10
@ -1683,12 +1669,10 @@ fieldset/TIMXISR:
offsets:
- 0
- 2
enum: EVENT
- name: RST
description: Reset Interrupt Flag
bit_offset: 13
bit_size: 1
enum: EVENT
- name: DLYPRT
description: Delayed Protection Flag
bit_offset: 14
@ -2139,15 +2123,6 @@ enum/EEFLTR:
- name: WindowTIMWIN
description: 'Windowing from another timing unit: TIMWIN source'
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:
bit_size: 2
variants:
@ -2190,15 +2165,6 @@ enum/IPPSTAT:
- name: Output2Active
description: Protection occurred when the output 2 was active and output 1 forced inactive
value: 1
enum/LOCKED:
bit_size: 1
variants:
- name: Unlocked
description: Bits are writeable
value: 0
- name: Locked
description: Bits are read-only
value: 1
enum/OUTPUTSTATE:
bit_size: 1
variants:

View File

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