mirror of https://github.com/ARMmbed/mbed-os.git
Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others)
parent
13f43cce52
commit
02b573793a
|
@ -24,7 +24,13 @@
|
||||||
#include "PeripheralPins.h"
|
#include "PeripheralPins.h"
|
||||||
#include "mbed_error.h"
|
#include "mbed_error.h"
|
||||||
|
|
||||||
|
// Some STM32G4 series (and others) have 3 FDCAN devices
|
||||||
|
// while others have 2
|
||||||
|
#ifdef FDCAN3
|
||||||
|
static uintptr_t can_irq_contexts[3] = {0};
|
||||||
|
#else
|
||||||
static uintptr_t can_irq_contexts[2] = {0};
|
static uintptr_t can_irq_contexts[2] = {0};
|
||||||
|
#endif
|
||||||
static can_irq_handler irq_handler;
|
static can_irq_handler irq_handler;
|
||||||
|
|
||||||
/** Call all the init functions
|
/** Call all the init functions
|
||||||
|
|
Loading…
Reference in New Issue