新手上路
- 积分
- 27
- 金钱
- 27
- 注册时间
- 2018-3-4
- 在线时间
- 3 小时
|
[mw_shl_code=c,true]/**
* @brief Configures the SysTick clock source.
* @param SysTick_CLKSource: specifies the SysTick clock source.
* This parameter can be one of the following values:
* @arg SysTick_CLKSource_HCLK_Div8: AHB clock divided 3yòÔ by 8 selectedèëÑ¡ as SysTick clock source.à′Ô′
* @arg SysTick_CLKSource_HCLK: AHB clock selected as SysTick clock source.
* @retval None
*/
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
{
/* Check the parameters */
assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource));
if (SysTick_CLKSource == SysTick_CLKSource_HCLK)
{
SysTick->CTRL |= SysTick_CLKSource_HCLK;
}
else
{
SysTick->CTRL &= SysTick_CLKSource_HCLK_Div8;
}
}[/mw_shl_code]
从注释和源代码上分析,FreeRTOS的抵达定时器时钟可以设置成 HCLK 或者 HCLK/8 为什么还把原来的HCLK/8 改成了HCLK ??? 是哪里我没有考虑到?
|
|