diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-02-22 13:24:19 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-02-22 13:24:19 +0000 |
commit | 6e5915850c1429af78fafacaee399c5114892538 (patch) | |
tree | 0aa330fdfba2a8d14854a229fc2076e76b1ad453 /os | |
parent | 27261ab8a6ade925246c1dec80ead3f4a9c651c2 (diff) | |
download | ChibiOS-6e5915850c1429af78fafacaee399c5114892538.tar.gz ChibiOS-6e5915850c1429af78fafacaee399c5114892538.tar.bz2 ChibiOS-6e5915850c1429af78fafacaee399c5114892538.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6717 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-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);
}
/** @} */
|