flipperzero-firmware/firmware/targets/local/Src/main.c
DrZlo13 59740349fa
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>
2020-10-15 20:36:15 +03:00

19 lines
280 B
C

#include "heap.h"
#include "errno.h"
/*
Flipper devices inc.
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();
}