unity_test_utils_cache.h 617 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /**
  11. * @brief Disable flash cache and run user stub function and then enable flash cache again
  12. *
  13. * @note You should make sure the passed-in function is in internal RAM.
  14. *
  15. * @param post_cache_disable User function to be invoked after cache is disabled.
  16. * @param user_ctx User context to be passed to user function.
  17. */
  18. void unity_utils_run_cache_disable_stub(void (*post_cache_disable)(void *), void *user_ctx);
  19. #ifdef __cplusplus
  20. }
  21. #endif