aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/common
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 10:34:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 10:34:01 +0000
commit4c9f1963a9d92af708dccb93a41f0cebcb43e796 (patch)
treef13720976c61698469a95057fda8748fe46053c3 /os/hal/ports/common
parent9ab3be39cbb99b811b29b56aad107298828fd52c (diff)
downloadChibiOS-4c9f1963a9d92af708dccb93a41f0cebcb43e796.tar.gz
ChibiOS-4c9f1963a9d92af708dccb93a41f0cebcb43e796.tar.bz2
ChibiOS-4c9f1963a9d92af708dccb93a41f0cebcb43e796.zip
Improved test specifications generation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9221 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/common')
-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 948560cd2..49cfbc42a 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_HGENERIC)
+#elif defined(__CORE_CM7_H_GENERIC)
SCB->SHPR[handler] = NVIC_PRIORITY_MASK(prio);
#else
SCB->SHP[handler] = NVIC_PRIORITY_MASK(prio);