Skip to content
Open
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 Marlin/src/HAL/shared/ARM/HAL_NVIC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
// wired into the CPU (hard fault at attempt).
extern void (*volatile const g_pfnVectors[VECTOR_TABLE_SIZE])();
#define _NVIC_HAS_DEFAULT_VECTOR
#elif defined(STM32G0xx) // Generalize for all STM32G0 series chips
// STM32G0 series chips based on ARM Cortex-M0+ with 16 fixed vectors and 32 external interrupts
#define VECTOR_TABLE_SIZE 48 // 16 fixed exceptions + 32 external interrupts
#define IRQ_VECTOR_ALIGNMENT (1<<8) // 256 bytes alignment for Cortex-M0+
extern void (*volatile const g_pfnVectors[VECTOR_TABLE_SIZE])();
#define _NVIC_HAS_DEFAULT_VECTOR
#elif defined(TARGET_LPC1768)
// See NXP UM10360 page 75ff
#define VECTOR_TABLE_SIZE 51
Expand Down