AP_HAL: enable virtual CAN for native built linux targets

This commit is contained in:
bugobliterator 2023-01-09 10:00:09 +11:00 committed by Andrew Tridgell
parent d0b79959e7
commit 10fb5d6b21
1 changed files with 7 additions and 0 deletions

View File

@ -396,3 +396,10 @@
#ifndef HAL_GYROFFT_ENABLED
#define HAL_GYROFFT_ENABLED 0
#endif
#if (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NONE) && HAL_FORCE_32BIT
// we can use virtual CAN on native builds
#define HAL_LINUX_USE_VIRTUAL_CAN 1
#else
#define HAL_LINUX_USE_VIRTUAL_CAN 0
#endif