unity_test_utils.h 600 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdint.h>
  8. #include "freertos/FreeRTOS.h"
  9. #include "freertos/task.h"
  10. #include "unity_test_utils_memory.h"
  11. #include "unity_test_utils_cache.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /**
  16. * @brief Delete task ensuring dynamic memory (for stack, tcb etc.) gets freed up immediately
  17. *
  18. * @param[in] thandle Handle of task to be deleted (should not be NULL or self handle)
  19. */
  20. void unity_utils_task_delete(TaskHandle_t thandle);
  21. #ifdef __cplusplus
  22. }
  23. #endif