aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/common/ARMCMx/nvic.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 09:06:49 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 09:06:49 +0000
commitab6c3ecaa01676ebad88637ad76b91899cb8a576 (patch)
tree1c3721d249cae6587086f7b063bce4d6d3d46f7f /os/hal/ports/common/ARMCMx/nvic.c
parentbcdc4801e911c05664cd1a65102346759a2fb9e3 (diff)
downloadChibiOS-ab6c3ecaa01676ebad88637ad76b91899cb8a576.tar.gz
ChibiOS-ab6c3ecaa01676ebad88637ad76b91899cb8a576.tar.bz2
ChibiOS-ab6c3ecaa01676ebad88637ad76b91899cb8a576.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9213 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/common/ARMCMx/nvic.c')
-rw-r--r--os/hal/ports/common/ARMCMx/nvic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/common/ARMCMx/nvic.c b/os/hal/ports/common/ARMCMx/nvic.c
index 49cfbc42a..948560cd2 100644
--- a/os/hal/ports/common/ARMCMx/nvic.c
+++ b/os/hal/ports/common/ARMCMx/nvic.c
@@ -94,7 +94,7 @@ void nvicSetSystemHandlerPriority(uint32_t handler, uint32_t prio) {
#if defined(__CORE_CM0_H_GENERIC)
SCB->SHP[_SHP_IDX(handler)] = (SCB->SHP[_SHP_IDX(handler)] & ~(0xFFU << _BIT_SHIFT(handler))) |
(NVIC_PRIORITY_MASK(prio) << _BIT_SHIFT(handler));
-#elif defined(__CORE_CM7_H_GENERIC)
+#elif defined(_CORE_CM7_HGENERIC)
SCB->SHPR[handler] = NVIC_PRIORITY_MASK(prio);
#else
SCB->SHP[handler] = NVIC_PRIORITY_MASK(prio);