diff --git a/docs/en/api-reference/peripherals/timer.rst b/docs/en/api-reference/peripherals/timer.rst index aa821ad189..6e259f9551 100644 --- a/docs/en/api-reference/peripherals/timer.rst +++ b/docs/en/api-reference/peripherals/timer.rst @@ -3,10 +3,12 @@ General Purpose Timer :link_to_translation:`zh_CN:[中文]` +{IDF_TARGET_TIMER_COUNTER_BIT_WIDTH:default="54", esp32="64", esp32s2="64"} + Introduction ------------ -The {IDF_TARGET_NAME} chip contains two hardware timer groups. Each group has two general-purpose hardware timers. They are all {SOC_TIMER_GROUP_COUNTER_BIT_WIDTH}-bit generic timers based on 16-bit pre-scalers and {SOC_TIMER_GROUP_COUNTER_BIT_WIDTH}-bit up / down counters which are capable of being auto-reloaded. +The {IDF_TARGET_NAME} chip contains two hardware timer groups. Each group has two general-purpose hardware timers. They are all {IDF_TARGET_TIMER_COUNTER_BIT_WIDTH}-bit generic timers based on 16-bit pre-scalers and {IDF_TARGET_TIMER_COUNTER_BIT_WIDTH}-bit up / down counters which are capable of being auto-reloaded. Functional Overview @@ -94,7 +96,7 @@ For more information on how to use interrupts, please see the application exampl Application Example ------------------- -The {SOC_TIMER_GROUP_COUNTER_BIT_WIDTH}-bit hardware timer example: :example:`peripherals/timer_group`. +The {IDF_TARGET_TIMER_COUNTER_BIT_WIDTH}-bit hardware timer example: :example:`peripherals/timer_group`. API Reference diff --git a/docs/zh_CN/api-reference/peripherals/timer.rst b/docs/zh_CN/api-reference/peripherals/timer.rst index ad24ea2833..f303f649b0 100644 --- a/docs/zh_CN/api-reference/peripherals/timer.rst +++ b/docs/zh_CN/api-reference/peripherals/timer.rst @@ -3,10 +3,12 @@ :link_to_translation:`en:[English]` +{IDF_TARGET_TIMER_COUNTER_BIT_WIDTH:default="54", esp32="64", esp32s2="64"} + 简介 ---- -{IDF_TARGET_NAME} 芯片提供两组硬件定时器,每组包含两个通用硬件定时器。所有定时器均为 {SOC_TIMER_GROUP_COUNTER_BIT_WIDTH} 位通用定时器,包括 16 位预分频器和 {SOC_TIMER_GROUP_COUNTER_BIT_WIDTH} 位自动重载向上/向下计数器。 +{IDF_TARGET_NAME} 芯片提供两组硬件定时器,每组包含两个通用硬件定时器。所有定时器均为 {IDF_TARGET_TIMER_COUNTER_BIT_WIDTH} 位通用定时器,包括 16 位预分频器和 {IDF_TARGET_TIMER_COUNTER_BIT_WIDTH} 位自动重载向上/向下计数器。 功能概述 @@ -94,7 +96,7 @@ 应用示例 -------- -{SOC_TIMER_GROUP_COUNTER_BIT_WIDTH} 位通用硬件定时器示例::example:`peripherals/timer_group`。 +{IDF_TARGET_TIMER_COUNTER_BIT_WIDTH} 位通用硬件定时器示例::example:`peripherals/timer_group`。 API 参考 --------