mirror of
				https://github.com/alexandrebobkov/ESP-Nodes.git
				synced 2025-11-04 16:04:09 +00:00 
			
		
		
		
	FreeRTOS
This commit is contained in:
		@@ -102,7 +102,7 @@ void task1(void *pvParameters) {
 | 
				
			|||||||
                .num3 = 0,
 | 
					                .num3 = 0,
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            xQueueSend(xQueue1, &data, 0);
 | 
					            xQueueSend(xQueue1, &data, 0);
 | 
				
			||||||
            printf("Task 1 sent x=%" PRIu32 "\n");
 | 
					            printf("Task 1 sent x=%" PRIu32 "\n", x);
 | 
				
			||||||
            x++;
 | 
					            x++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            vTaskDelay((500)); // Delay for 1 second
 | 
					            vTaskDelay((500)); // Delay for 1 second
 | 
				
			||||||
@@ -128,7 +128,7 @@ void task2(void *pvParameters) {
 | 
				
			|||||||
                .num3 = 0,
 | 
					                .num3 = 0,
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            xQueueSend(xQueue2, &data, 0);
 | 
					            xQueueSend(xQueue2, &data, 0);
 | 
				
			||||||
            printf("Task 2 sent y=%" PRIu32 "\n");
 | 
					            printf("Task 2 sent y=%" PRIu32 "\n", y);
 | 
				
			||||||
            y++;
 | 
					            y++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            vTaskDelay((2000)); // Delay for 2 seconds
 | 
					            vTaskDelay((2000)); // Delay for 2 seconds
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user