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

[2/2] incubator-mynewt-core git commit: No jira ticket: reduce task stacks for blinky since 4K stacks not needed. Remove definition of console handler (not needed).

No jira ticket: reduce task stacks for blinky since 4K stacks
not needed. Remove definition of console handler (not needed).


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

Branch: refs/heads/develop
Commit: 6512e6244314b124b7a23a8223f68f223c80c8b7
Parents: 063a01b
Author: William San Filippo <wi...@runtime.io>
Authored: Thu Sep 22 21:02:05 2016 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Thu Sep 22 21:10:14 2016 -0700

----------------------------------------------------------------------
 apps/blinky/src/main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6512e624/apps/blinky/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blinky/src/main.c b/apps/blinky/src/main.c
index e7736c9..717bac8 100755
--- a/apps/blinky/src/main.c
+++ b/apps/blinky/src/main.c
@@ -32,18 +32,17 @@
 
 /* Task 1 */
 #define TASK1_PRIO (1)
-#define TASK1_STACK_SIZE    OS_STACK_ALIGN(1024)
+#define TASK1_STACK_SIZE    OS_STACK_ALIGN(256)
 struct os_task task1;
 os_stack_t stack1[TASK1_STACK_SIZE];
 static volatile int g_task1_loops;
 
 /* Task 2 */
 #define TASK2_PRIO (2)
-#define TASK2_STACK_SIZE    OS_STACK_ALIGN(1024)
+#define TASK2_STACK_SIZE    OS_STACK_ALIGN(256)
 struct os_task task2;
 os_stack_t stack2[TASK2_STACK_SIZE];
 
-struct log_handler log_console_handler;
 struct log my_log;
 
 static volatile int g_task2_loops;