diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/common/ARMCMx/nvic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/common/ARMCMx/nvic.c b/os/hal/ports/common/ARMCMx/nvic.c index dbd165a9f..b469e7cf1 100644 --- a/os/hal/ports/common/ARMCMx/nvic.c +++ b/os/hal/ports/common/ARMCMx/nvic.c @@ -80,9 +80,9 @@ void nvicDisableVector(uint32_t n) { */
void nvicSetSystemHandlerPriority(uint32_t handler, uint32_t prio) {
- osalDbgCheck((handler >= 4) && (handler <= 15));
+ osalDbgCheck(handler <= 12);
- SCB->SHP[handler - 4] = NVIC_PRIORITY_MASK(prio);
+ SCB->SHP[handler] = NVIC_PRIORITY_MASK(prio);
}
/** @} */
|