himem_memory_check.h 807 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // need [env:esp32cam-dev-himem]
  2. //CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
  3. //CONFIG_SPIRAM_BANKSWITCH_RESERVE=4
  4. #pragma once
  5. #include "../../include/defines.h"
  6. #ifdef DEBUG_HIMEM_MEMORY_CHECK
  7. #ifndef HIMEM_MEMORY_CHECK_H
  8. #define HIMEM_MEMORY_CHECK_H
  9. //source : //source : https://github.com/espressif/esp-idf/blob/master/examples/system/himem/main/himem_example_main.c
  10. #include <stdio.h>
  11. #include <stdbool.h>
  12. #include <stdint.h>
  13. #include <inttypes.h>
  14. #include "freertos/FreeRTOS.h"
  15. #include "freertos/task.h"
  16. #include "freertos/queue.h"
  17. #include "esp_system.h"
  18. #include "esp_heap_caps.h"
  19. #include "esp32/himem.h"
  20. #include <string>
  21. #include "esp32/himem.h"
  22. std::string himem_memory_check();
  23. #endif //HIMEM_MEMORY_CHECK_H
  24. #endif // DEBUG_HIMEM_MEMORY_CHECK