Skip to content

Commit 461b93a

Browse files
committed
Rename syscall file
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 5d30bc4 commit 461b93a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cores/arduino/syscalls_stm32.c renamed to cores/arduino/syscalls.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ register char * stack_ptr asm("sp");
2929

3030
caddr_t _sbrk( int incr ) {
3131
extern char _end; /* Defined by the linker */
32-
static char *heap_end = NULL ;
33-
char *prev_heap_end ;
34-
35-
if ( heap_end == NULL ) {
36-
heap_end = &_end ;
37-
}
38-
prev_heap_end = heap_end;
32+
static char *heap_end = &_end ;
33+
char *prev_heap_end = heap_end;
3934

4035
if (heap_end + incr > stack_ptr) {
4136
/* Heap and stack collision */

0 commit comments

Comments
 (0)