mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 16:48:10 +00:00
FreeRTOS
This commit is contained in:
@@ -1 +1 @@
|
||||
ref: refs/heads/main
|
||||
4c2820d377d1375e787bcef612f0c32c1427d183
|
||||
|
@@ -18,7 +18,7 @@ set(HEAD_HASH)
|
||||
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
||||
|
||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
|
||||
set(GIT_DIR "/home/abobkov/esp/v5.4.1/esp-idf/.git")
|
||||
# handle git-worktree
|
||||
if(EXISTS "${GIT_DIR}/commondir")
|
||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
||||
|
@@ -1 +1 @@
|
||||
113b1d7c52d55b7aae16a6eb7dd672523c2e91d3
|
||||
4c2820d377d1375e787bcef612f0c32c1427d183
|
||||
|
@@ -88,9 +88,13 @@ void task1(void *pvParameters) {
|
||||
|
||||
void task2(void *pvParameters) {
|
||||
while (1) {
|
||||
printf("Task 2 is running\n");
|
||||
printf("This is Task #2\n\n");
|
||||
vTaskDelay((2000)); // Delay for 2 seconds
|
||||
if (xSemaphoreTake(xMutex, portMAX_DELAY)) {
|
||||
printf("Task 2 is running\n");
|
||||
printf("This is Task #2\n\n");
|
||||
vTaskDelay((2000)); // Delay for 2 seconds
|
||||
xSemaphoreGive(xMutex);
|
||||
}
|
||||
vTaskDelay((100));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user