2016-11-17 08:36:10 +00:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2017-03-22 03:50:05 +00:00
|
|
|
void app_main()
|
2016-11-17 08:36:10 +00:00
|
|
|
{
|
2017-03-22 03:50:05 +00:00
|
|
|
// Note: if unpinning this task, change the way run times are calculated in
|
|
|
|
// unity_platform
|
2016-11-17 08:36:10 +00:00
|
|
|
xTaskCreatePinnedToCore(unityTask, "unityTask", 4096, NULL, 5, NULL, 0);
|
|
|
|
}
|
|
|
|
|