admin 管理员组文章数量: 1184232
/*
以STM32F407为例子,为什么参数是这个
0. (SystemCoreClock / (1000U / uwTickFreq)): (表示systick的reload value)
1. SystemCoreClock 系统时钟 168000000: (1s可以计数这么多)
2. (1000U / uwTickFreq): (将1s分成1000份即1ms, 所以uwTickFreq毫秒后,触发systick中断)
3. (1000U / uwTickFreq): (1S将中断这么多次)
*/HAL_SYSTICK_Config(SystemCoreClock /(1000U/ uwTickFreq))扩展
/*stm32f4xx_hal_cortex.c*//**
* @brief Initializes the System Timer and its interrupt, and starts the System Tick Timer.
* Counter is in free running mode to generate periodic interrupts.
* @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
* @retval status: - 0 Function succeeded.
* - 1 Function failed.
*/uint32_tHAL_SYSTICK_Config(uint32_t TicksNumb){
returnSysTick_Config(TicksNumb);}/*core_cm4.h.c*//**
\brief System Tick Configuration
\details Initializes the System Timer and its interrupt, and starts the System Tick Timer.
Counter is in free running mode to generate periodic interrupts.
\param [in] ticks Number of ticks between two interrupts.
\return 0 Function succeeded.
\return 1 Function failed.
\note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
must contain a vendor-specific implementation of this function.
*/
__STATIC_INLINE uint32_tSysTick_Config(版权声明:本文标题:性能优化秘籍:在Adobe Flash Player中正确配置SYSTICK 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1772647186a3557737.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论