FreeRTOS vTaskDelayUntil 函数
来源:互联网 发布:js给span的value赋值 编辑:程序博客网 时间:2024/05/16 12:16
vTaskDelayUntil 使任务以一定周期调度
void vTaskDelayUntil( TickType_t *pxPreviousWakeTime, const TickType_t xTimeIncrement );
需要使能FreeRTOSConfig.h中的
#define INCLUDE_vTaskDelayUntil 1
1 ticks是多少ms?
#define configTICK_RATE_HZ ((TickType_t)1000) //1000HZ即1ms
//可配置范围为1-1000
例程:http://www.freertos.org/vtaskdelayuntil.html
// Perform an action every 10 ticks. void vTaskFunction( void * pvParameters ) { TickType_t xLastWakeTime; const TickType_t xFrequency = 10; // Initialise the xLastWakeTime variable with the current time. xLastWakeTime = xTaskGetTickCount();//获取当前tick for( ;; ) { // Wait for the next cycle. vTaskDelayUntil( &xLastWakeTime, xFrequency ); // Perform action here. } }
0 0
- FreeRTOS vTaskDelayUntil 函数
- FreeRTOS源码解析 -> vTaskDelayUntil()
- FreeRTOS 源码注释(vTaskDelayUntil)
- FreeRTOS(V8.0.1)系统之vTaskDelay()和vTaskDelayUntil()
- freertos函数vTaskList使用
- FreeRtos osMessagePut osMessageGet 函数
- Freertos学习--初识任务函数
- Freertos学习--初识任务函数
- FreeRTOS系统内核控制函数
- FreeRTOS系列第12篇---FreeRTOS任务应用函数
- FreeRTOS系列第18篇---FreeRTOS队列API函数
- FreeRTOS系列第20篇---FreeRTOS信号量API函数
- FreeRTOS系列第12篇---FreeRTOS任务应用函数
- FreeRTOS系列第18篇---FreeRTOS队列API函数
- FreeRTOS系列第20篇---FreeRTOS信号量API函数
- FreeRTOS系列第12篇---FreeRTOS任务应用函数
- FreeRTOS
- FreeRTOS
- 用java编写的五只蚂蚁走出27厘米长的细目干的最大最小时间
- C++面试题与答案
- 关于cocos2dx
- 存储类的仓库之Java常用类库(一)
- Refactoring Day 31 : Replace conditional with Polymorphism
- FreeRTOS vTaskDelayUntil 函数
- GPS NMEA 0183 4.10协议/GPS Linux串口驱动
- JS——方法
- Codeforces Round330 Div2题解
- hdu1051Wooden Sticks(贪心)
- Maven配置Nexus
- 最大连续乘积子数组
- 10002---div+css布局教程之div+css常见布局结构定义
- 程序员在囧途——互动出版网