From 4f10565f820ec835843ca1d1c6eed826f4cbfbe2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Mar 2021 09:24:32 +1100 Subject: [PATCH] HAL_ChibiOS: fixed CANFD build on H7 --- libraries/AP_HAL_ChibiOS/CANFDIface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/CANFDIface.cpp b/libraries/AP_HAL_ChibiOS/CANFDIface.cpp index cb6743efc1..1e8121214a 100644 --- a/libraries/AP_HAL_ChibiOS/CANFDIface.cpp +++ b/libraries/AP_HAL_ChibiOS/CANFDIface.cpp @@ -573,10 +573,12 @@ bool CANIface::init(const uint32_t bitrate, const OperatingMode mode) nvicEnableVector(FDCAN2_IT0_IRQn, CORTEX_MAX_KERNEL_PRIORITY); nvicEnableVector(FDCAN2_IT1_IRQn, CORTEX_MAX_KERNEL_PRIORITY); break; +#ifdef FDCAN3_IT0_IRQn case 2: nvicEnableVector(FDCAN3_IT0_IRQn, CORTEX_MAX_KERNEL_PRIORITY); nvicEnableVector(FDCAN3_IT1_IRQn, CORTEX_MAX_KERNEL_PRIORITY); break; +#endif } irq_init_ = true; }