diff options
Diffstat (limited to 'os/hal/ports/common')
-rw-r--r-- | os/hal/ports/common/ARMCMx/nvic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/common/ARMCMx/nvic.c b/os/hal/ports/common/ARMCMx/nvic.c index 93e74ca82..c8f1f21af 100644 --- a/os/hal/ports/common/ARMCMx/nvic.c +++ b/os/hal/ports/common/ARMCMx/nvic.c @@ -82,7 +82,11 @@ void nvicSetSystemHandlerPriority(uint32_t handler, uint32_t prio) { osalDbgCheck(handler <= 12);
+#if defined(__CORE_CM7_H_GENERIC)
+ SCB->SHPR[handler] = NVIC_PRIORITY_MASK(prio);
+#else
SCB->SHP[handler] = NVIC_PRIORITY_MASK(prio);
+#endif
}
/**
|