furi memory managment (#177)
* memory managment calls now forwarded to freertos heap * memory managment tests * local target test compability * rename heap.c file to heap_4.c for local target and explicity init heap in single thread context * rebase BlockLink_t struct * check mutex in local heap Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#include "heap.h"
|
||||
#include "errno.h"
|
||||
|
||||
/*
|
||||
Flipper devices inc.
|
||||
|
||||
@@ -7,5 +10,10 @@ Local fw build entry point.
|
||||
int app();
|
||||
|
||||
int main() {
|
||||
// this function is not thread-safe, so it must be called in single thread context
|
||||
if(!prvHeapInit()){
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
return app();
|
||||
}
|
Reference in New Issue
Block a user