전체 글17 Free RTOS (Message Queue) Example Task간 동기화및 메시지 송수신을 위한 메시지 Queue 사용예입니다. TaskHandle_t myTask1Handle = NULL; TaskHandle_t myTask2Handle = NULL; QueueHandle_t myQueue; void myTask1(void *pvParameters) { TickType_t xDelay = pdMS_TO_TICKS(1000); TickType_t myLastUnblock; myLastUnblock = xTaskGetTickCount(); char myTxBuff[30]; myQueue = xQueueCreate( 5 , sizeof(myTxBuff) ); //size of queue (number of block), size of each block spri.. 2023. 7. 12. 이전 1 2 3 4 5 다음