mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 05:47:07 +00:00
FreeRTOS
This commit is contained in:
@@ -69,9 +69,11 @@ void app_main(void)
|
|||||||
|
|
||||||
void task1(void *pvParameters) {
|
void task1(void *pvParameters) {
|
||||||
while (1) {
|
while (1) {
|
||||||
printf("Task 1 is running\n");
|
if (xSemaphoreTake(xMutex, portMAX_DELAY)) {
|
||||||
printf("This is Task #1\n\n");
|
printf("Task 1 is running\n");
|
||||||
vTaskDelay((1000)); // Delay for 1 second
|
printf("This is Task #1\n\n");
|
||||||
|
vTaskDelay((500)); // Delay for 1 second
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user