mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
* Update defines.h * Update esp_sys.h * Update esp_sys.cpp * Add files via upload * Update perfmon.c * Update main.cpp * Update main.cpp * Delete himem_memory_check.c * Add files via upload * Update defines.h * Update himem_memory_check.cpp * Update main.cpp * Update himem_memory_check.cpp * Update himem_memory_check.h * Update main.cpp
42 lines
807 B
C++
42 lines
807 B
C++
|
|
// need [env:esp32cam-dev-himem]
|
|
//CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
|
|
//CONFIG_SPIRAM_BANKSWITCH_RESERVE=4
|
|
|
|
#pragma once
|
|
|
|
#include "../../include/defines.h"
|
|
|
|
#ifdef DEBUG_HIMEM_MEMORY_CHECK
|
|
|
|
#ifndef HIMEM_MEMORY_CHECK_H
|
|
#define HIMEM_MEMORY_CHECK_H
|
|
|
|
|
|
|
|
//source : //source : https://github.com/espressif/esp-idf/blob/master/examples/system/himem/main/himem_example_main.c
|
|
|
|
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <inttypes.h>
|
|
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "freertos/queue.h"
|
|
#include "esp_system.h"
|
|
#include "esp_heap_caps.h"
|
|
#include "esp32/himem.h"
|
|
|
|
#include <string>
|
|
#include "esp32/himem.h"
|
|
|
|
|
|
std::string himem_memory_check();
|
|
|
|
#endif //HIMEM_MEMORY_CHECK_H
|
|
|
|
#endif // DEBUG_HIMEM_MEMORY_CHECK
|