esp_ptr_in_extram() function
End of the common section that has to be in sync with esp_memory_utils.h * Check if the pointer is in PSRAM vaddr space
Syntax
__attribute__((always_inline))
inline static bool esp_ptr_in_extram(const void *p);
Return value
true: is in PSRAM; false: not in PSRAM
Notes
This function is only used when in bootloader, where the PSRAM isn't initialised. This function simply check if the pointer is the in the PSRAM vaddr space. The PSRAM vaddr space is not always the same as the actual PSRAM vaddr range used in APP