linux_freertos.c 957 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include "freertos/FreeRTOS.h"
  7. #include "freertos/task.h"
  8. #include "unity.h"
  9. #include "unity_test_runner.h"
  10. void app_main(void)
  11. {
  12. /*
  13. Some FreeRTOS tests are reliant on the main task being at priority UNITY_FREERTOS_PRIORITY to test scheduling
  14. behavior. Thus, we raise the main task's priority before any tasks are run. See IDF-6088
  15. */
  16. vTaskPrioritySet(NULL, CONFIG_UNITY_FREERTOS_PRIORITY);
  17. printf(" ______ _____ _______ ____ _____\n");
  18. printf("| ____| | __ \\__ __/ __ \\ / ____|\n");
  19. printf("| |__ _ __ ___ ___| |__) | | | | | | | (___\n");
  20. printf("| __| '__/ _ \\/ _ \\ _ / | | | | | |\\___ \\\n");
  21. printf("| | | | | __/ __/ | \\ \\ | | | |__| |____) |\n");
  22. printf("|_| |_| \\___|\\___|_| \\_\\ |_| \\____/|_____/\n");
  23. unity_run_menu();
  24. }