摘要: 这篇讲的蛮好的 https://www.zhihu.com/question/38279574 阅读全文
posted @ 2024-04-03 10:38 njit-sam 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 二值信号量 SemaphoreHandle_t sem_handle; sem_handle = xSemaphoreCreateBinary(); static void send_Task(void* pvParameters) { while(1) { xSemaphoreGive(sem_h 阅读全文
posted @ 2024-04-03 10:29 njit-sam 阅读(3) 评论(0) 推荐(0) 编辑
摘要: EventGroupHandle_t ev_handle; ev_handle = xEventGroupCreate(); static void send_Task(void* pvParameters) { while(1) { xEventGroupSetBits(ev_handle, 1) 阅读全文
posted @ 2024-04-03 10:25 njit-sam 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 仅作记录 QueueHandle_t q_handle; q_handle = xQueueCreate(5, 1); static void send_Task(void* pvParameters) { uint8_t datat = 8; while(1) { BaseType_t xRetu 阅读全文
posted @ 2024-04-03 10:22 njit-sam 阅读(6) 评论(0) 推荐(0) 编辑