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 2017/03/22 20:53:43 UTC

[1/2] incubator-mynewt-core git commit: timtest: Fix pstack malloc for task 2 should use TASK2_STACK_SIZE

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop ded20e114 -> ea988a0cf


timtest: Fix pstack malloc for task 2 should use TASK2_STACK_SIZE


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

Branch: refs/heads/develop
Commit: 3fa905bc40bfd77d708f8c4c682409d26423a743
Parents: 0d659e8
Author: Louie Lu <me...@louie.lu>
Authored: Thu Mar 16 11:51:20 2017 +0800
Committer: Louie Lu <me...@louie.lu>
Committed: Thu Mar 16 11:51:20 2017 +0800

----------------------------------------------------------------------
 apps/timtest/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3fa905bc/apps/timtest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/timtest/src/main.c b/apps/timtest/src/main.c
index ff6ace0..29ad716 100755
--- a/apps/timtest/src/main.c
+++ b/apps/timtest/src/main.c
@@ -169,13 +169,13 @@ init_tasks(void)
     res = hal_timer_get_resolution(TASK2_TIMER_NUM);
     assert(res == (1000000000 / TASK2_TIMER_FREQ));
 
-    pstack = malloc(sizeof(os_stack_t)*TASK1_STACK_SIZE);
+    pstack = malloc(sizeof(os_stack_t) * TASK1_STACK_SIZE);
     assert(pstack);
 
     os_task_init(&task1, "task1", task1_handler, NULL,
             TASK1_PRIO, OS_WAIT_FOREVER, pstack, TASK1_STACK_SIZE);
 
-    pstack = malloc(sizeof(os_stack_t)*TASK1_STACK_SIZE);
+    pstack = malloc(sizeof(os_stack_t) * TASK2_STACK_SIZE);
     assert(pstack);
 
     os_task_init(&task2, "task2", task2_handler, NULL,


[2/2] incubator-mynewt-core git commit: This closes #209.

Posted by ma...@apache.org.
This closes #209.

Merge branch 'fix_timtest_pstack_malloc' of https://github.com/grapherd/incubator-mynewt-core into develop


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

Branch: refs/heads/develop
Commit: ea988a0cf9c88a0737643189ff63f9e2ad4125b9
Parents: ded20e1 3fa905b
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Mar 22 13:52:27 2017 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Mar 22 13:52:27 2017 -0700

----------------------------------------------------------------------
 apps/timtest/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------