mirror of https://github.com/ArduPilot/ardupilot
HAL_PX4: fixed FMUv1 build
This commit is contained in:
parent
619cdbe065
commit
f3d401abb9
|
@ -236,11 +236,19 @@ extern "C" {
|
|||
*/
|
||||
void *PX4Util::dma_allocate(size_t size)
|
||||
{
|
||||
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
return fat_dma_alloc(size);
|
||||
#else
|
||||
return malloc(size);
|
||||
#endif
|
||||
}
|
||||
void PX4Util::dma_free(void *ptr, size_t size)
|
||||
{
|
||||
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
fat_dma_free(ptr, size);
|
||||
#else
|
||||
return free(ptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
|
|
Loading…
Reference in New Issue