Browse Source

HAL_ChibiOS: fixed CANFD build on H7

c415-sdk
Andrew Tridgell 4 years ago
parent
commit
4f10565f82
  1. 2
      libraries/AP_HAL_ChibiOS/CANFDIface.cpp

2
libraries/AP_HAL_ChibiOS/CANFDIface.cpp

@ -573,10 +573,12 @@ bool CANIface::init(const uint32_t bitrate, const OperatingMode mode) @@ -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;
}

Loading…
Cancel
Save