1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-04-02 16:20:31 +00:00

msp432p401lp-cc256x: provide working _sbrk

This commit is contained in:
Matthias Ringwald 2020-11-09 23:37:56 +01:00
parent 9a7ee89c09
commit ff348cd34b

@ -101,9 +101,20 @@ int _fstat(int file){
return -1;
}
extern int _end;
void * _sbrk(int incr){
UNUSED(incr);
return NULL;
static unsigned char *heap = NULL;
unsigned char *prev_heap;
if (heap == NULL) {
heap = (unsigned char *)&_end;
}
prev_heap = heap;
heap += incr;
return prev_heap;
}
#endif