mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS
This commit is contained in:
parent
c7185a1e7f
commit
882b01bae3
|
@ -94,7 +94,7 @@ static_assert(STM32_FDCANCLK <= 80U*1000U*1000U, "FDCAN clock must be max 80MHz"
|
|||
|
||||
using namespace ChibiOS;
|
||||
|
||||
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
|
||||
#if HAL_CANMANAGER_ENABLED
|
||||
#define Debug(fmt, args...) do { AP::can().log_text(AP_CANManager::LOG_DEBUG, "CANFDIface", fmt, ##args); } while (0)
|
||||
#else
|
||||
#define Debug(fmt, args...)
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define CAN2_RX1_IRQ_Handler STM32_CAN2_RX1_HANDLER
|
||||
#endif // #if defined(STM32F3XX)
|
||||
|
||||
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
|
||||
#if HAL_CANMANAGER_ENABLED
|
||||
#define Debug(fmt, args...) do { AP::can().log_text(AP_CANManager::LOG_DEBUG, "CANIface", fmt, ##args); } while (0)
|
||||
#else
|
||||
#define Debug(fmt, args...)
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "sdcard.h"
|
||||
#include "shared_dma.h"
|
||||
#include <AP_Common/ExpandingString.h>
|
||||
#if defined(HAL_PWM_ALARM) || HAL_DSHOT_ALARM || HAL_ENABLE_LIBUAVCAN_DRIVERS
|
||||
#if defined(HAL_PWM_ALARM) || HAL_DSHOT_ALARM || HAL_CANMANAGER_ENABLED
|
||||
#include <AP_Notify/AP_Notify.h>
|
||||
#endif
|
||||
#if HAL_ENABLE_SAVE_PERSISTENT_PARAMS
|
||||
|
@ -167,7 +167,7 @@ bool Util::toneAlarm_init(uint8_t types)
|
|||
#endif
|
||||
_toneAlarm_types = types;
|
||||
|
||||
#if !defined(HAL_PWM_ALARM) && !HAL_DSHOT_ALARM && !HAL_ENABLE_LIBUAVCAN_DRIVERS
|
||||
#if !defined(HAL_PWM_ALARM) && !HAL_DSHOT_ALARM && !HAL_CANMANAGER_ENABLED
|
||||
// Nothing to do
|
||||
return false;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue