mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 10:30:54 +00:00
FreeRTOS
This commit is contained in:
@@ -53,6 +53,13 @@ void app_main(void)
|
|||||||
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
xMutex = xSemaphoreCreateMutex();
|
||||||
|
if (xMutex == NULL) {
|
||||||
|
printf("Failed to create mutex\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
xTaskCreate(task1, "Task1", 2048, NULL, 5, NULL);
|
xTaskCreate(task1, "Task1", 2048, NULL, 5, NULL);
|
||||||
xTaskCreate(task2, "Task2", 2048, NULL, 5, NULL);
|
xTaskCreate(task2, "Task2", 2048, NULL, 5, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user