cwespressif commented on a change in pull request #2832: URL: https://github.com/apache/incubator-nuttx/pull/2832#discussion_r573420348
########## File path: arch/xtensa/src/esp32/esp32_imm.c ########## @@ -73,6 +73,46 @@ FAR void *xtensa_imm_malloc(size_t size) return mm_malloc(&g_iheap, size); } +/**************************************************************************** + * Name: xtensa_imm_calloc + * + * Description: + * Calculates the size of the allocation and + * allocate memory the internal heap. + * + ****************************************************************************/ + +FAR void *xtensa_imm_calloc(size_t n, size_t elem_size) +{ + return mm_calloc(&g_iheap, n, elem_size); +} + +/**************************************************************************** + * Name: xtensa_imm_realloc + * + * Description: + * Reallocate memory from the internal heap. + * + ****************************************************************************/ + +FAR void *xtensa_imm_realloc(void *ptr, size_t size) Review comment: @acassis I have modified it, thank you. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org