mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 10:10:53 +00:00
FreeRTOS
This commit is contained in:
@@ -39,7 +39,7 @@ void restart_task(void *pvParameters);
|
|||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
cntdn = 10;
|
cntdn = 20;
|
||||||
s_data = (SensorsData) {
|
s_data = (SensorsData) {
|
||||||
.num1 = 0,
|
.num1 = 0,
|
||||||
.num2 = 0,
|
.num2 = 0,
|
||||||
@@ -142,7 +142,7 @@ void task2(void *pvParameters) {
|
|||||||
printf("Task 2 sent y=%" PRIu32 "\n", y);
|
printf("Task 2 sent y=%" PRIu32 "\n", y);
|
||||||
y++;
|
y++;
|
||||||
|
|
||||||
vTaskDelay((2000)); // Delay for 2 seconds
|
vTaskDelay((500)); // Delay for 2 seconds
|
||||||
xSemaphoreGive(xMutex);
|
xSemaphoreGive(xMutex);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user