diff --git a/data/family/CH32V0.yaml b/data/family/CH32V0.yaml index d53b310..e0d2dc2 100644 --- a/data/family/CH32V0.yaml +++ b/data/family/CH32V0.yaml @@ -129,6 +129,8 @@ register: APB2PRSTR field: IOPDRST +# TIM use hclk as bus clock + - name: TIM1 address: 0x40012C00 registers: @@ -136,8 +138,8 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 - kernel_clock: PCLK2 + bus_clock: HCLK + kernel_clock: HCLK enable: register: APB2PCENR field: TIM1EN @@ -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 diff --git a/data/peripherals/FV2x_V3x_ADV_TIM1.yaml b/data/peripherals/FV2x_V3x_ADV_TIM1.yaml index fbc4778..d9beca9 100644 --- a/data/peripherals/FV2x_V3x_ADV_TIM1.yaml +++ b/data/peripherals/FV2x_V3x_ADV_TIM1.yaml @@ -5,7 +5,7 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 + bus_clock: PCLK2_TIM kernel_clock: PCLK2 enable: register: APB2PCENR diff --git a/data/peripherals/FV2x_V3x_ADV_TIM8910.yaml b/data/peripherals/FV2x_V3x_ADV_TIM8910.yaml index 9f9d9c7..6334e6b 100644 --- a/data/peripherals/FV2x_V3x_ADV_TIM8910.yaml +++ b/data/peripherals/FV2x_V3x_ADV_TIM8910.yaml @@ -5,7 +5,7 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 + bus_clock: PCLK2_TIM kernel_clock: PCLK2 enable: register: APB2PCENR @@ -56,7 +56,7 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 + bus_clock: PCLK2_TIM kernel_clock: PCLK2 enable: register: APB2PCENR @@ -117,7 +117,7 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 + bus_clock: PCLK2_TIM kernel_clock: PCLK2 enable: register: APB2PCENR diff --git a/data/peripherals/FV2x_V3x_BASIC_TIM67.yaml b/data/peripherals/FV2x_V3x_BASIC_TIM67.yaml index 69b60cd..9940813 100644 --- a/data/peripherals/FV2x_V3x_BASIC_TIM67.yaml +++ b/data/peripherals/FV2x_V3x_BASIC_TIM67.yaml @@ -8,7 +8,7 @@ version: v3 block: BCTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR @@ -27,7 +27,7 @@ version: v3 block: BCTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR diff --git a/data/peripherals/FV2x_V3x_GP16_TIM234.yaml b/data/peripherals/FV2x_V3x_GP16_TIM234.yaml index 5f272da..f1b5d6f 100644 --- a/data/peripherals/FV2x_V3x_GP16_TIM234.yaml +++ b/data/peripherals/FV2x_V3x_GP16_TIM234.yaml @@ -5,7 +5,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR @@ -56,7 +56,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR @@ -103,7 +103,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR diff --git a/data/peripherals/FV2x_V3x_GP16_TIM5.yaml b/data/peripherals/FV2x_V3x_GP16_TIM5.yaml index 0849f17..7d72f37 100644 --- a/data/peripherals/FV2x_V3x_GP16_TIM5.yaml +++ b/data/peripherals/FV2x_V3x_GP16_TIM5.yaml @@ -5,7 +5,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR diff --git a/data/peripherals/FV2x_V3x_GP32_TIM5.yaml b/data/peripherals/FV2x_V3x_GP32_TIM5.yaml index 036d79b..bb73b92 100644 --- a/data/peripherals/FV2x_V3x_GP32_TIM5.yaml +++ b/data/peripherals/FV2x_V3x_GP32_TIM5.yaml @@ -5,7 +5,7 @@ version: v3 block: GPTM32 rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR diff --git a/data/peripherals/V1x_GP16_TIM23.yaml b/data/peripherals/V1x_GP16_TIM23.yaml index 57f47f7..0d84fb9 100644 --- a/data/peripherals/V1x_GP16_TIM23.yaml +++ b/data/peripherals/V1x_GP16_TIM23.yaml @@ -5,7 +5,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR @@ -56,7 +56,7 @@ version: v3 block: GPTM rcc: - bus_clock: PCLK1 + bus_clock: PCLK1_TIM kernel_clock: PCLK1 enable: register: APB1PCENR diff --git a/data/peripherals/V1x_V2x_ADV_TIM1.yaml b/data/peripherals/V1x_V2x_ADV_TIM1.yaml index 81e9292..0d941e4 100644 --- a/data/peripherals/V1x_V2x_ADV_TIM1.yaml +++ b/data/peripherals/V1x_V2x_ADV_TIM1.yaml @@ -7,7 +7,7 @@ version: v3 block: ADTM rcc: - bus_clock: PCLK2 + bus_clock: PCLK2_TIM kernel_clock: PCLK2 enable: register: APB2PCENR