memmgr_heap.h 634 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <stdint.h>
  3. #include <cmsis_os2.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /** Memmgr heap enable thread allocation tracking
  8. * @param thread_id - thread id to track
  9. */
  10. void memmgr_heap_enable_thread_trace(osThreadId_t thread_id);
  11. /** Memmgr heap disable thread allocation tracking
  12. * @param thread_id - thread id to track
  13. */
  14. void memmgr_heap_disable_thread_trace(osThreadId_t thread_id);
  15. /** Memmgr heap get allocatred thread memory
  16. * @param thread_id - thread id to track
  17. * @return bytes allocated right now
  18. */
  19. size_t memmgr_heap_get_thread_memory(osThreadId_t thread_id);
  20. #ifdef __cplusplus
  21. }
  22. #endif