Skip to content

Commit 7e77437

Browse files
fpistmxC0000005
authored andcommitted
Define _sbrk as weak
This will allow to user to override the default behavior. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 7cdcbe8 commit 7e77437

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/syscalls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern size_t uart_debug_write(uint8_t *data, uint32_t size);
2727

2828
register char * stack_ptr asm("sp");
2929

30+
__attribute__((weak))
3031
caddr_t _sbrk( int incr ) {
3132
extern char _end; /* Defined by the linker */
3233
static char *heap_end = &_end ;

0 commit comments

Comments
 (0)