unity_test_utils.h 564 B

123456789101112131415161718192021222324252627
  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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /**
  15. * @brief Delete task ensuring dynamic memory (for stack, tcb etc.) gets freed up immediately
  16. *
  17. * @param[in] thandle Handle of task to be deleted (should not be NULL or self handle)
  18. */
  19. void unity_utils_task_delete(TaskHandle_t thandle);
  20. #ifdef __cplusplus
  21. }
  22. #endif