2016-11-17 03:36:10 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
|
|
|
#include "unity.h"
|
2017-03-15 23:07:50 -04:00
|
|
|
#include "unity_config.h"
|
2016-11-17 03:36:10 -05:00
|
|
|
|
2017-03-15 23:07:50 -04:00
|
|
|
void unityTask(void *pvParameters)
|
2016-11-17 03:36:10 -05:00
|
|
|
{
|
2017-11-23 09:35:54 -05:00
|
|
|
vTaskDelay(2); /* Delay a bit to let the main task be deleted */
|
2017-11-09 04:26:43 -05:00
|
|
|
unity_run_menu(); /* Doesn't return */
|
2016-11-17 03:36:10 -05:00
|
|
|
}
|
|
|
|
|
2017-03-21 23:50:05 -04:00
|
|
|
void app_main()
|
2016-11-17 03:36:10 -05:00
|
|
|
{
|
2017-03-21 23:50:05 -04:00
|
|
|
// Note: if unpinning this task, change the way run times are calculated in
|
|
|
|
// unity_platform
|
2018-05-02 03:39:39 -04:00
|
|
|
xTaskCreatePinnedToCore(unityTask, "unityTask", UNITY_FREERTOS_STACK_SIZE, NULL,
|
2017-03-15 23:07:50 -04:00
|
|
|
UNITY_FREERTOS_PRIORITY, NULL, UNITY_FREERTOS_CPU);
|
2016-11-17 03:36:10 -05:00
|
|
|
}
|