Browse Source

HAL_ChibiOS: fixed build for single FDCAN G4 boards

gps-1.3.1
Andrew Tridgell 4 years ago committed by Peter Barker
parent
commit
bab0c1dfc7
  1. 2
      libraries/AP_HAL_ChibiOS/CANFDIface.cpp

2
libraries/AP_HAL_ChibiOS/CANFDIface.cpp

@ -574,10 +574,12 @@ bool CANIface::init(const uint32_t bitrate, const OperatingMode mode) @@ -574,10 +574,12 @@ bool CANIface::init(const uint32_t bitrate, const OperatingMode mode)
nvicEnableVector(FDCAN1_IT0_IRQn, CORTEX_MAX_KERNEL_PRIORITY);
nvicEnableVector(FDCAN1_IT1_IRQn, CORTEX_MAX_KERNEL_PRIORITY);
break;
#ifdef FDCAN2_IT0_IRQn
case 1:
nvicEnableVector(FDCAN2_IT0_IRQn, CORTEX_MAX_KERNEL_PRIORITY);
nvicEnableVector(FDCAN2_IT1_IRQn, CORTEX_MAX_KERNEL_PRIORITY);
break;
#endif
#ifdef FDCAN3_IT0_IRQn
case 2:
nvicEnableVector(FDCAN3_IT0_IRQn, CORTEX_MAX_KERNEL_PRIORITY);

Loading…
Cancel
Save