A121 Integration using STM32CubeIDE
char * stack_limit = ( char *) (& estack - & min_stack_size );
static char * heap_end ;
char * prev_heap_end ;
if ( heap_end == 0)
heap_end = & end ;
prev_heap_end = heap_end ;
if ( he incr > stack_limit )
{
errno = ENOMEM ;
return ( caddr_t ) -1;
}
he= incr ;
return ( caddr_t ) prev_heap_end ;
}
© 2022 by Acconeer AB - All rights reserved
Page 22 of 23