Skip to content

Commit

Permalink
fix: tim clock source
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 5, 2024
1 parent 8beab2c commit ce0b75d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 18 deletions.
10 changes: 6 additions & 4 deletions data/family/CH32V0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,17 @@
register: APB2PRSTR
field: IOPDRST

# TIM use hclk as bus clock

- name: TIM1
address: 0x40012C00
registers:
kind: timer
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
kernel_clock: PCLK2
bus_clock: HCLK
kernel_clock: HCLK
enable:
register: APB2PCENR
field: TIM1EN
Expand Down Expand Up @@ -279,8 +281,8 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
kernel_clock: PCLK1
bus_clock: HCLK
kernel_clock: HCLK
enable:
register: APB1PCENR
field: TIM2EN
Expand Down
2 changes: 1 addition & 1 deletion data/peripherals/FV2x_V3x_ADV_TIM1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
bus_clock: PCLK2_TIM
kernel_clock: PCLK2
enable:
register: APB2PCENR
Expand Down
6 changes: 3 additions & 3 deletions data/peripherals/FV2x_V3x_ADV_TIM8910.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
bus_clock: PCLK2_TIM
kernel_clock: PCLK2
enable:
register: APB2PCENR
Expand Down Expand Up @@ -56,7 +56,7 @@
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
bus_clock: PCLK2_TIM
kernel_clock: PCLK2
enable:
register: APB2PCENR
Expand Down Expand Up @@ -117,7 +117,7 @@
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
bus_clock: PCLK2_TIM
kernel_clock: PCLK2
enable:
register: APB2PCENR
Expand Down
4 changes: 2 additions & 2 deletions data/peripherals/FV2x_V3x_BASIC_TIM67.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version: v3
block: BCTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand All @@ -27,7 +27,7 @@
version: v3
block: BCTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down
6 changes: 3 additions & 3 deletions data/peripherals/FV2x_V3x_GP16_TIM234.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down Expand Up @@ -56,7 +56,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down Expand Up @@ -103,7 +103,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down
2 changes: 1 addition & 1 deletion data/peripherals/FV2x_V3x_GP16_TIM5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down
2 changes: 1 addition & 1 deletion data/peripherals/FV2x_V3x_GP32_TIM5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: GPTM32
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down
4 changes: 2 additions & 2 deletions data/peripherals/V1x_GP16_TIM23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down Expand Up @@ -56,7 +56,7 @@
version: v3
block: GPTM
rcc:
bus_clock: PCLK1
bus_clock: PCLK1_TIM
kernel_clock: PCLK1
enable:
register: APB1PCENR
Expand Down
2 changes: 1 addition & 1 deletion data/peripherals/V1x_V2x_ADV_TIM1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
version: v3
block: ADTM
rcc:
bus_clock: PCLK2
bus_clock: PCLK2_TIM
kernel_clock: PCLK2
enable:
register: APB2PCENR
Expand Down

0 comments on commit ce0b75d

Please sign in to comment.