Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ab6c11c

Browse files
committedOct 4, 2018
Define _sbrk as weak
This will allow to user to override the default behavior. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 96d082a commit ab6c11c

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 = NULL ;

0 commit comments

Comments
 (0)
Please sign in to comment.