FreeRTOS 的 configCPU_CLOCK_HZ 描述中的确切含义是什么?
What exactly meant in FreeRTOS's configCPU_CLOCK_HZ description?
configCPU_CLOCK_HZ选项解释是这样开头的:
Enter the frequency in Hz at which the internal clock that driver the peripheral used to generate the tick interrupt will be executing.
虽然我或多或少地理解它的意思,但我需要对那里的确切内容进行更详细的解释。从中间删除明显的 "the peripheral used to generate the tick interrupt" 我得到 "Enter the frequency in Hz at which the internal clock that driver will be executing",这个短语对我来说看起来有点不协调。车主想用这个表达什么?某些 "that" 驱动程序,不像 "this"?什么"that"?上下文并不意味着这里有任何 "that"。
我认为 'driver' 在那个解释中应该是 'drives'。
configCPU_CLOCK_HZ 是生成滴答中断的平台相关定时器的频率。一些端口使用它来对定时器进行编程,以便它生成正确的 FreeRTOS 节拍率(参见 configTICK_RATE_HZ)。
示例:configCPU_CLOCK_HZ 是 1000000 (1 MHz),configTICK_RATE_HZ 是 100,那么您将定时器配置为每 1000000/100 = 10000 个滴答生成一个中断。该中断是您的 FreeRTOS 系统节拍。
查看 ARM Cortex-M 端口,了解使用 Cortex-M SysTick 的最常见示例之一
configCPU_CLOCK_HZ选项解释是这样开头的:
Enter the frequency in Hz at which the internal clock that driver the peripheral used to generate the tick interrupt will be executing.
虽然我或多或少地理解它的意思,但我需要对那里的确切内容进行更详细的解释。从中间删除明显的 "the peripheral used to generate the tick interrupt" 我得到 "Enter the frequency in Hz at which the internal clock that driver will be executing",这个短语对我来说看起来有点不协调。车主想用这个表达什么?某些 "that" 驱动程序,不像 "this"?什么"that"?上下文并不意味着这里有任何 "that"。
我认为 'driver' 在那个解释中应该是 'drives'。
configCPU_CLOCK_HZ 是生成滴答中断的平台相关定时器的频率。一些端口使用它来对定时器进行编程,以便它生成正确的 FreeRTOS 节拍率(参见 configTICK_RATE_HZ)。
示例:configCPU_CLOCK_HZ 是 1000000 (1 MHz),configTICK_RATE_HZ 是 100,那么您将定时器配置为每 1000000/100 = 10000 个滴答生成一个中断。该中断是您的 FreeRTOS 系统节拍。
查看 ARM Cortex-M 端口,了解使用 Cortex-M SysTick 的最常见示例之一