unity_test_utils.h 527 B

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