You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by pa...@apache.org on 2016/10/26 16:28:17 UTC
[2/2] incubator-mynewt-core git commit: ensure we set all interrupts
to lowest priority when we initialize
ensure we set all interrupts to lowest priority when we initialize
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/4b17d723
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4b17d723
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4b17d723
Branch: refs/heads/develop
Commit: 4b17d72330739c4aa675c3f2f24ecd1f6052454c
Parents: 062d3ab
Author: Paul Dietrich <pa...@yahoo.com>
Authored: Mon Oct 17 17:34:10 2016 -0700
Committer: paulfdietrich <pa...@yahoo.com>
Committed: Wed Oct 26 09:11:35 2016 -0700
----------------------------------------------------------------------
kernel/os/src/arch/cortex_m0/os_arch_arm.c | 2 +-
kernel/os/src/arch/cortex_m4/os_arch_arm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4b17d723/kernel/os/src/arch/cortex_m0/os_arch_arm.c
----------------------------------------------------------------------
diff --git a/kernel/os/src/arch/cortex_m0/os_arch_arm.c b/kernel/os/src/arch/cortex_m0/os_arch_arm.c
index e6be971..6d501c0 100755
--- a/kernel/os/src/arch/cortex_m0/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m0/os_arch_arm.c
@@ -197,7 +197,7 @@ os_arch_os_init(void)
/* Drop priority for all interrupts */
for (i = 0; i < sizeof(NVIC->IP); i++) {
- NVIC->IP[i] = 0xff;
+ NVIC->IP[i] = 0xffffffff;
}
NVIC_SetVector(SVCall_IRQn, (uint32_t)SVC_Handler);
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4b17d723/kernel/os/src/arch/cortex_m4/os_arch_arm.c
----------------------------------------------------------------------
diff --git a/kernel/os/src/arch/cortex_m4/os_arch_arm.c b/kernel/os/src/arch/cortex_m4/os_arch_arm.c
index ce685f3..08c70a3 100755
--- a/kernel/os/src/arch/cortex_m4/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m4/os_arch_arm.c
@@ -200,7 +200,7 @@ os_arch_os_init(void)
/* Drop priority for all interrupts */
for (i = 0; i < sizeof(NVIC->IP); i++) {
- NVIC->IP[i] = 0xff;
+ NVIC->IP[i] = 0xffffffff;
}
NVIC_SetVector(SVCall_IRQn, (uint32_t)SVC_Handler);