![]() |
Synergy Software Package User's Manual
|
Functions | |
| caddr_t | _sbrk (int incr) |
| SSP implementation of the standard library _sbrk() function. More... | |
| caddr_t _sbrk | ( | int | incr | ) |
SSP implementation of the standard library _sbrk() function.
| [in] | incr | The number of bytes being asked for by malloc(). |
| Address | of allocated area if successful, -1 otherwise. |
< Defined by the linker.
< Defined by the linker.
Need to align heap to word boundary, else will get
hard faults on Cortex-M0. So we assume that heap starts on
word boundary, hence make sure we always add a multiple of
4 to it.
< align value to 4
Heap has overflowed