Skip to content

Commit

Permalink
Merge pull request #485 from honzasp/timer-fixes-2
Browse files Browse the repository at this point in the history
Further timer fixes
  • Loading branch information
Dirbaio authored Jun 7, 2024
2 parents 729eb6e + 6272fcc commit c073cbf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 59 deletions.
58 changes: 3 additions & 55 deletions data/registers/timer_l0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ block/TIM_2CH:
- name: SMCR
description: slave mode control register
byte_offset: 8
fieldset: SMCR_2CH
fieldset: SMCR_GP16
- name: DIER
description: DMA/Interrupt enable register
byte_offset: 12
Expand Down Expand Up @@ -547,11 +547,6 @@ fieldset/DCR_GP16:
description: DMA burst length
bit_offset: 8
bit_size: 5
- name: DBSS
description: DMA burst source selection
bit_offset: 16
bit_size: 4
enum: DBSS
fieldset/DIER_1CH:
extends: DIER_CORE
description: DMA/Interrupt enable register
Expand Down Expand Up @@ -674,7 +669,7 @@ fieldset/EGR_GP16:
description: Trigger generation
bit_offset: 6
bit_size: 1
fieldset/SMCR_2CH:
fieldset/SMCR_GP16:
description: slave mode control register
fields:
- name: SMS
Expand Down Expand Up @@ -711,29 +706,6 @@ fieldset/SMCR_2CH:
bit_offset: 15
bit_size: 1
enum: ETP
fieldset/SMCR_GP16:
extends: SMCR_2CH
description: slave mode control register
fields:
- name: ETF
description: External trigger filter
bit_offset: 8
bit_size: 4
enum: FilterValue
- name: ETPS
description: External trigger prescaler
bit_offset: 12
bit_size: 2
enum: ETPS
- name: ECE
description: External clock mode 2 enable
bit_offset: 14
bit_size: 1
- name: ETP
description: External trigger polarity
bit_offset: 15
bit_size: 1
enum: ETP
fieldset/SR_1CH:
extends: SR_CORE
description: status register
Expand Down Expand Up @@ -857,30 +829,6 @@ enum/CMS:
- name: CenterAligned3
description: The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down.
value: 3
enum/DBSS:
bit_size: 4
variants:
- name: Update
description: Update
value: 1
- name: CC1
description: CC1
value: 2
- name: CC2
description: CC2
value: 3
- name: CC3
description: CC3
value: 4
- name: CC4
description: CC4
value: 5
- name: COM
description: COM
value: 6
- name: Trigger
description: Trigger
value: 7
enum/DIR:
bit_size: 1
variants:
Expand Down Expand Up @@ -1032,7 +980,7 @@ enum/SMS:
bit_size: 3
variants:
- name: Disabled
description: Slave mode disabled - if CEN = ‘1 then the prescaler is clocked directly by the internal clock.
description: Slave mode disabled - if CEN = '1' then the prescaler is clocked directly by the internal clock.
value: 0
- name: Encoder_Mode_1
description: Encoder mode 1 - Counter counts up/down on TI2FP1 edge depending on TI1FP2 level.
Expand Down
12 changes: 8 additions & 4 deletions data/registers/timer_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ block/TIM_GP16:
stride: 4
byte_offset: 52
fieldset: CCR_1CH
- name: DCR
description: DMA control register
byte_offset: 72
fieldset: DCR_1CH_CMP
- name: DMAR
description: DMA address for full transfer
byte_offset: 76
Expand Down Expand Up @@ -442,10 +446,6 @@ block/TIM_GP32:
len: 4
stride: 4
byte_offset: 52
- name: DCR
description: DMA control register
byte_offset: 72
fieldset: DCR_1CH_CMP
fieldset/AF1_1CH_CMP:
description: alternate function register 1
fields:
Expand Down Expand Up @@ -1159,6 +1159,10 @@ fieldset/DIER_2CH_CMP:
extends: DIER_1CH_CMP
description: DMA/Interrupt enable register
fields:
- name: TIE
description: Trigger interrupt enable
bit_offset: 6
bit_size: 1
- name: COMDE
description: COM DMA request enable
bit_offset: 13
Expand Down
4 changes: 4 additions & 0 deletions data/registers/timer_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,10 @@ fieldset/DIER_2CH_CMP:
extends: DIER_1CH_CMP
description: DMA/Interrupt enable register
fields:
- name: TIE
description: Trigger interrupt enable
bit_offset: 6
bit_size: 1
- name: COMDE
description: COM DMA request enable
bit_offset: 13
Expand Down

0 comments on commit c073cbf

Please sign in to comment.