mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 03:42:24 +00:00
FreeRTOS
This commit is contained in:
@@ -104,8 +104,8 @@ void task1(void *pvParameters) {
|
|||||||
while (1) {
|
while (1) {
|
||||||
if (xSemaphoreTake(xMutex, 1500)) {
|
if (xSemaphoreTake(xMutex, 1500)) {
|
||||||
printf("Task 1 is running\n");
|
printf("Task 1 is running\n");
|
||||||
s_data.num1 = x;
|
task1_data.num1 = x;
|
||||||
xQueueSend(xQueue1, &s_data, 0);
|
xQueueSend(xQueue1, &task1_data, 0);
|
||||||
printf("Task 1 sent x=%" PRIu32 "\n", x);
|
printf("Task 1 sent x=%" PRIu32 "\n", x);
|
||||||
x+=2;
|
x+=2;
|
||||||
vTaskDelay((500));
|
vTaskDelay((500));
|
||||||
|
Reference in New Issue
Block a user