FreeRTOS定时任务
时间: 2023-11-18 17:52:23 浏览: 184
FreeRTOS任务通知
FreeRTOS定时任务是通过一个名为prvTimerTask的任务来管理软定时器的。这个任务在启动调度器时会自动创建,并负责检查用户设置的定时器是否溢出,并调用相应的回调函数。要使用FreeRTOS定时任务,需要在FreeRTOSConfig.h文件中将configUSE_TIMERS宏定义设置为1,以便编译进相关的代码。软件定时器主要用于定时触发或周期性执行的功能,类似于软件模拟的定时中断。它不需要硬件支持,与硬件定时器或计数器无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [FreeRTOS系统定时器任务的实现](https://blog.csdn.net/yekui006/article/details/123620177)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [FreeRTOS 软件定时器的使用](https://blog.csdn.net/ba_wang_mao/article/details/127444714)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文