You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/04/11 23:25:46 UTC

[16/28] incubator-mynewt-core git commit: Replace SYSTICK_PRIO with OS_TICK_PRIO.

Replace SYSTICK_PRIO with OS_TICK_PRIO.

It is not required that the periodic timer be based on the ARM's systick.


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/c9eef76a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c9eef76a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c9eef76a

Branch: refs/heads/develop
Commit: c9eef76ab94d6423ceba45b42d640018fe06693f
Parents: f59995e
Author: Neel Natu <ne...@nahannisys.com>
Authored: Wed Apr 6 12:00:01 2016 -0700
Committer: Neel Natu <ne...@nahannisys.com>
Committed: Wed Apr 6 12:00:01 2016 -0700

----------------------------------------------------------------------
 libs/os/src/arch/cortex_m4/os_arch_arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c9eef76a/libs/os/src/arch/cortex_m4/os_arch_arm.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/cortex_m4/os_arch_arm.c b/libs/os/src/arch/cortex_m4/os_arch_arm.c
index b9c0c1d..6023eca 100755
--- a/libs/os/src/arch/cortex_m4/os_arch_arm.c
+++ b/libs/os/src/arch/cortex_m4/os_arch_arm.c
@@ -30,7 +30,7 @@
  * higher priority exception will interrupt a lower priority exception.
  */
 #define PEND_SV_PRIO    ((1 << __NVIC_PRIO_BITS) - 1)
-#define SYSTICK_PRIO    (PEND_SV_PRIO - 1)
+#define OS_TICK_PRIO    (PEND_SV_PRIO - 1)
 
 /* Make the SVC instruction highest priority */
 #define SVC_PRIO        (1)
@@ -246,7 +246,7 @@ os_arch_start(void)
     __set_PSP((uint32_t)t->t_stackptr + offsetof(struct stack_frame, r0));
 
     /* Intitialize and start system clock timer */
-    os_tick_init(OS_TICKS_PER_SEC, SYSTICK_PRIO);
+    os_tick_init(OS_TICKS_PER_SEC, OS_TICK_PRIO);
 
     /* Mark the OS as started, right before we run our first task */
     g_os_started = 1;