mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 16:20:24 +00:00
msp432p401lp-cc256x: provide working _sbrk
This commit is contained in:
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user