esp32c3: Implement up_textheap_heapmember
This commit is contained in:
parent
a9317b1895
commit
c60bb81387
@ -110,3 +110,29 @@ 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_ESP32C3_RTC_HEAP
|
||||
if (esp32c3_ptr_rtc(p))
|
||||
{
|
||||
return esp32c3_rtcheap_heapmember(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
p -= D_I_BUS_OFFSET;
|
||||
return kmm_heapmember(p);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user