Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions targets/TARGET_STM/can_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
#include "PeripheralPins.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};
#endif
static can_irq_handler irq_handler;

/** Call all the init functions
Expand Down