freertos获取tick
时间: 2023-10-19 07:05:54 浏览: 315
freertos相关
在FreeRTOS中,可以通过使用函数vTaskGetTickCount()来获取当前的tick数。Tick是系统中断的基本单位,代表系统运行的时间。每次系统心跳时,tick数会增加。通过调用vTaskGetTickCount()函数,可以获取当前tick数的值。这个函数返回一个32位无符号整数,可以表示较长的时间。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [1294_FreeRTOS中tick、任务数、任务名称查询实现分析](https://blog.csdn.net/grey_csdn/article/details/125671299)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [FreeRTOS任务优先级和系统心跳Tick](https://blog.csdn.net/luobeihai/article/details/119653993)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文