mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
19 lines
317 B
C
19 lines
317 B
C
|
#include <stdio.h>
|
||
|
#include "freertos/FreeRTOS.h"
|
||
|
#include "freertos/task.h"
|
||
|
#include "unity.h"
|
||
|
|
||
|
|
||
|
void unityTask(void *pvParameters)
|
||
|
{
|
||
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||
|
unity_run_menu();
|
||
|
while(1);
|
||
|
}
|
||
|
|
||
|
void app_main()
|
||
|
{
|
||
|
xTaskCreatePinnedToCore(unityTask, "unityTask", 4096, NULL, 5, NULL, 0);
|
||
|
}
|
||
|
|