AP_Common: support QURT

This commit is contained in:
Andrew Tridgell 2024-07-06 09:18:09 +10:00
parent 4e8f1e6092
commit 3a6024e8ab

View File

@ -112,10 +112,10 @@ void *_malloc_r(_reent *x, size_t size)
return ret; return ret;
} }
#elif CONFIG_HAL_BOARD != HAL_BOARD_CHIBIOS #elif CONFIG_HAL_BOARD != HAL_BOARD_CHIBIOS && CONFIG_HAL_BOARD != HAL_BOARD_QURT
/* /*
wrapper around malloc to ensure all memory is initialised as zero wrapper around malloc to ensure all memory is initialised as zero
ChibiOS has its own wrapper ChibiOS and QURT have their own wrappers
*/ */
extern "C" { extern "C" {
void *__wrap_malloc(size_t size); void *__wrap_malloc(size_t size);