app_main.c 508 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. #include "freertos/FreeRTOS.h"
  3. #include "freertos/task.h"
  4. #include "unity.h"
  5. #include "unity_config.h"
  6. void unityTask(void *pvParameters)
  7. {
  8. vTaskDelay(1000 / portTICK_PERIOD_MS);
  9. unity_run_menu();
  10. while(1);
  11. }
  12. void app_main()
  13. {
  14. // Note: if unpinning this task, change the way run times are calculated in
  15. // unity_platform
  16. xTaskCreatePinnedToCore(unityTask, "unityTask", 4096, NULL,
  17. UNITY_FREERTOS_PRIORITY, NULL, UNITY_FREERTOS_CPU);
  18. }