Skip to content

Commit

Permalink
HRTIM updates
Browse files Browse the repository at this point in the history
Combine SDTR and SDTF enums, since they're the same.
(possible values are "positive" or "negative")

Combine TAU/TBU/TCU/TDU/TEU into a length-5 array.
  • Loading branch information
dlaw committed Dec 12, 2024
1 parent ddb0e7a commit d874140
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 64 deletions.
42 changes: 10 additions & 32 deletions data/registers/hrtim_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1358,26 +1358,13 @@ fieldset/TIMXCR:
description: Timer X reset update
bit_offset: 18
bit_size: 1
- name: TAU
description: Timer A update
- name: TU
description: Timer X update
bit_offset: 19
bit_size: 1
- name: TBU
description: Timer B update
bit_offset: 20
bit_size: 1
- name: TCU
description: Timer C update
bit_offset: 21
bit_size: 1
- name: TDU
description: Timer D update
bit_offset: 22
bit_size: 1
- name: TEU
description: Timer E update
bit_offset: 23
bit_size: 1
array:
len: 5
stride: 1
- name: MSTU
description: Master Timer update
bit_offset: 24
Expand Down Expand Up @@ -1502,7 +1489,7 @@ fieldset/TIMXDT:
description: Sign Deadtime Rising value
bit_offset: 9
bit_size: 1
enum: SDTR
enum: SDT
- name: DTPRSC
description: Deadtime Prescaler
bit_offset: 10
Expand All @@ -1523,7 +1510,7 @@ fieldset/TIMXDT:
description: Sign Deadtime Falling value
bit_offset: 25
bit_size: 1
enum: SDTF
enum: SDT
- name: DTFSLK
description: Deadtime Falling Sign Lock
bit_offset: 30
Expand Down Expand Up @@ -2092,23 +2079,14 @@ enum/POL:
- name: ActiveLow
description: Negative polarity (output active low)
value: 1
enum/SDTF:
bit_size: 1
variants:
- name: Positive
description: Positive deadtime on falling edge
value: 0
- name: Negative
description: Negative deadtime on falling edge
value: 1
enum/SDTR:
enum/SDT:
bit_size: 1
variants:
- name: Positive
description: Positive deadtime on rising edge
description: Positive deadtime (both outputs inactive during deadtime)
value: 0
- name: Negative
description: Negative deadtime on rising edge
description: Negative deadtime (both outputs active during deadtime)
value: 1
enum/SYNCIN:
bit_size: 2
Expand Down
42 changes: 10 additions & 32 deletions data/registers/hrtim_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1355,26 +1355,13 @@ fieldset/TIMXCR:
description: Timer X reset update
bit_offset: 18
bit_size: 1
- name: TAU
description: Timer A update
- name: TU
description: Timer X update
bit_offset: 19
bit_size: 1
- name: TBU
description: Timer B update
bit_offset: 20
bit_size: 1
- name: TCU
description: Timer C update
bit_offset: 21
bit_size: 1
- name: TDU
description: Timer D update
bit_offset: 22
bit_size: 1
- name: TEU
description: Timer E update
bit_offset: 23
bit_size: 1
array:
len: 5
stride: 1
- name: MSTU
description: Master Timer update
bit_offset: 24
Expand Down Expand Up @@ -1499,7 +1486,7 @@ fieldset/TIMXDT:
description: Sign Deadtime Rising value
bit_offset: 9
bit_size: 1
enum: SDTR
enum: SDT
- name: DTPRSC
description: Deadtime Prescaler
bit_offset: 10
Expand All @@ -1520,7 +1507,7 @@ fieldset/TIMXDT:
description: Sign Deadtime Falling value
bit_offset: 25
bit_size: 1
enum: SDTF
enum: SDT
- name: DTFSLK
description: Deadtime Falling Sign Lock
bit_offset: 30
Expand Down Expand Up @@ -2091,23 +2078,14 @@ enum/POL:
- name: ActiveLow
description: Negative polarity (output active low)
value: 1
enum/SDTF:
bit_size: 1
variants:
- name: Positive
description: Positive deadtime on falling edge
value: 0
- name: Negative
description: Negative deadtime on falling edge
value: 1
enum/SDTR:
enum/SDT:
bit_size: 1
variants:
- name: Positive
description: Positive deadtime on rising edge
description: Positive deadtime (both outputs inactive during deadtime)
value: 0
- name: Negative
description: Negative deadtime on rising edge
description: Negative deadtime (both outputs active during deadtime)
value: 1
enum/SYNCIN:
bit_size: 2
Expand Down

0 comments on commit d874140

Please sign in to comment.