mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
25 lines
746 B
C
25 lines
746 B
C
#include <stdio.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "unity.h"
|
|
#include "unity_config.h"
|
|
#include "tcpip_adapter.h"
|
|
|
|
void unityTask(void *pvParameters)
|
|
{
|
|
vTaskDelay(2); /* Delay a bit to let the main task be deleted */
|
|
unity_run_menu(); /* Doesn't return */
|
|
}
|
|
|
|
void app_main()
|
|
{
|
|
// TCP/IP adapter is initialized here because it leaks memory so the
|
|
// initialization in test cases would make the test fail because of leak.
|
|
tcpip_adapter_init();
|
|
|
|
// Note: if unpinning this task, change the way run times are calculated in
|
|
// unity_platform
|
|
xTaskCreatePinnedToCore(unityTask, "unityTask", 8192, NULL,
|
|
UNITY_FREERTOS_PRIORITY, NULL, UNITY_FREERTOS_CPU);
|
|
}
|