摘要: 1.初始化计数型信号量句柄 SemaphoreHandle_t CountSemaphore; 2.创建计数型信号量 CountSemaphore=xSemaphoreCreateCounting(255,0);//255是最大计数值,0为开始计数值 3.计数型信号量的释放 BaseType_t e 阅读全文
posted @ 2020-04-30 10:42 -青云 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 1.初始化二值信号量句柄 SemaphoreHandle_t BinarySemaphore; 2.创建二值信号量 BinarySemaphore=xSemaphoreCreateBinary(); 3.二值信号量的释放 BaseType_t xHigherPriorityTaskWoken; xS 阅读全文
posted @ 2020-04-30 08:54 -青云 阅读(876) 评论(0) 推荐(0) 编辑