AP_HAL: split into HAL_CANMANAGER_ENABLED and HAL_ENABLE_LIBUAVCAN_DRIVERS

This commit is contained in:
Siddharth Purohit 2021-06-20 16:20:20 +05:30 committed by Peter Barker
parent 5acce3055f
commit c7185a1e7f

View File

@ -224,8 +224,12 @@
#endif
#endif
#ifndef HAL_ENABLE_CANMANAGER
#define HAL_ENABLE_CANMANAGER (HAL_MAX_CAN_PROTOCOL_DRIVERS > 0) && !defined(HAL_BUILD_AP_PERIPH)
#ifndef HAL_CANMANAGER_ENABLED
#define HAL_CANMANAGER_ENABLED ((HAL_MAX_CAN_PROTOCOL_DRIVERS > 0) && !defined(HAL_BUILD_AP_PERIPH))
#endif
#ifndef HAL_ENABLE_LIBUAVCAN_DRIVERS
#define HAL_ENABLE_LIBUAVCAN_DRIVERS HAL_CANMANAGER_ENABLED
#endif
#ifdef HAVE_LIBDL