esp32c3: Implement up_textheap_heapmember
This commit is contained in:
parent
a9317b1895
commit
c60bb81387
1 changed files with 26 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue