2016-11-17 16:36:10 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
|
|
|
#include "unity.h"
|
2017-03-16 11:07:50 +08:00
|
|
|
#include "unity_config.h"
|
2016-11-17 16:36:10 +08:00
|
|
|
|
2017-03-16 11:07:50 +08:00
|
|
|
void unityTask(void *pvParameters)
|
2016-11-17 16:36:10 +08:00
|
|
|
{
|
|
|
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
|
|
|
unity_run_menu();
|
|
|
|
while(1);
|
|
|
|
}
|
|
|
|
|
2017-03-22 11:50:05 +08:00
|
|
|
void app_main()
|
2016-11-17 16:36:10 +08:00
|
|
|
{
|
2017-03-22 11:50:05 +08:00
|
|
|
// Note: if unpinning this task, change the way run times are calculated in
|
|
|
|
// unity_platform
|
2017-03-16 11:07:50 +08:00
|
|
|
xTaskCreatePinnedToCore(unityTask, "unityTask", 4096, NULL,
|
|
|
|
UNITY_FREERTOS_PRIORITY, NULL, UNITY_FREERTOS_CPU);
|
2016-11-17 16:36:10 +08:00
|
|
|
}
|