Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlashDB移植到FreeRTOS是在fal_def.h中的FAL_REALLOC要如何处理 #245

Open
UnhappyMoonlight opened this issue Oct 9, 2023 · 1 comment

Comments

@UnhappyMoonlight
Copy link

您好,移植FlashDB的时候看到fal_def.h里有malloc,free,realloc和calloc,malloc和free可以用pvPortMalloc和vPortFree替换,calloc搜了下源码发现没有调用,realloc在fal_partition_init()里用到了,但FreeRTOS只提供了pvPortMalloc和vPortFree,那么对realloc要如何处理。

@eggcar
Copy link
Contributor

eggcar commented Oct 11, 2023

realloc需要自己实现,网上可以找到很多例子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants