memcheck: fix for new HAL_SITL
This commit is contained in:
parent
fc8bd8cf95
commit
265707401f
@ -40,7 +40,7 @@ void memcheck_update_stackptr(void)
|
|||||||
*/
|
*/
|
||||||
void memcheck_init(void)
|
void memcheck_init(void)
|
||||||
{
|
{
|
||||||
#ifndef DESKTOP_BUILD
|
#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL
|
||||||
uint32_t *p;
|
uint32_t *p;
|
||||||
free(malloc(1)); // ensure heap is initialised
|
free(malloc(1)); // ensure heap is initialised
|
||||||
stack_low = current_stackptr();
|
stack_low = current_stackptr();
|
||||||
@ -57,7 +57,7 @@ void memcheck_init(void)
|
|||||||
*/
|
*/
|
||||||
unsigned memcheck_available_memory(void)
|
unsigned memcheck_available_memory(void)
|
||||||
{
|
{
|
||||||
#ifdef DESKTOP_BUILD
|
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
||||||
return 0x1000;
|
return 0x1000;
|
||||||
#else
|
#else
|
||||||
memcheck_update_stackptr();
|
memcheck_update_stackptr();
|
||||||
|
Loading…
Reference in New Issue
Block a user