esp32: Implement up_textheap_heapmember

This commit is contained in:
YAMAMOTO Takashi 2022-05-20 18:20:35 +09:00 committed by Xiang Xiao
parent c60bb81387
commit 0b547e2384
1 changed files with 25 additions and 0 deletions

View File

@ -104,3 +104,28 @@ void up_textheap_free(void *p)
}
}
}
/****************************************************************************
* Name: up_textheap_heapmember
*
* Description:
* Test if memory is from text heap.
*
****************************************************************************/
bool up_textheap_heapmember(void *p)
{
if (p == NULL)
{
return false;
}
#ifdef CONFIG_ESP32_RTC_HEAP
if (esp32_ptr_rtcslow(p))
{
return esp32_rtcheap_heapmember(p);
}
#endif
return esp32_iramheap_heapmember(p);
}