You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/28 19:51:10 UTC

[1/3] incubator-mynewt-core git commit: Sim compiler - don't generate .bin file.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/0_10_0_dev d97034df8 -> ec41e6bfb


Sim compiler - don't generate .bin file.

This file is unnecessary for sim targets, and the user's machine may not
have [g]objcopy installed.


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

Branch: refs/heads/0_10_0_dev
Commit: ec41e6bfb8dffcdf2d574dae3114ad12b171ff32
Parents: f9020a0
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Jul 28 12:49:22 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Jul 28 12:51:00 2016 -0700

----------------------------------------------------------------------
 compiler/sim/compiler.yml | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ec41e6bf/compiler/sim/compiler.yml
----------------------------------------------------------------------
diff --git a/compiler/sim/compiler.yml b/compiler/sim/compiler.yml
index eaeccec..0eba296 100644
--- a/compiler/sim/compiler.yml
+++ b/compiler/sim/compiler.yml
@@ -31,6 +31,7 @@ compiler.ld.resolve_circular_deps: true
 compiler.flags.default: [compiler.flags.base, -O1]
 compiler.flags.debug: [compiler.flags.base, -O0]
 compiler.ld.mapfile: false
+compiler.ld.binfile: false
 
 # Linux.
 compiler.flags.base.LINUX: >


[3/3] incubator-mynewt-core git commit: shell; call console_init() from shell task context instead of app main.

Posted by cc...@apache.org.
shell; call console_init() from shell task context instead of app main.


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

Branch: refs/heads/0_10_0_dev
Commit: b65435f319905d6b2b6cbcae7e6533303d18fcc5
Parents: d97034d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jul 28 11:16:12 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Jul 28 12:51:00 2016 -0700

----------------------------------------------------------------------
 apps/bletest/src/main.c | 4 ----
 apps/bletiny/src/main.c | 4 ----
 apps/blinky/src/main.c  | 2 --
 apps/luatest/src/main.c | 1 -
 apps/slinky/src/main.c  | 6 ++----
 libs/shell/src/shell.c  | 1 +
 6 files changed, 3 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/apps/bletest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletest/src/main.c b/apps/bletest/src/main.c
index 6c59532..dbfa053 100755
--- a/apps/bletest/src/main.c
+++ b/apps/bletest/src/main.c
@@ -1105,10 +1105,6 @@ main(void)
     g_led_pin = LED_BLINK_PIN;
     hal_gpio_init_out(g_led_pin, 1);
 
-    /* Init the console */
-    rc = console_init(shell_console_rx_cb);
-    assert(rc == 0);
-
 #if 0
     rc = hal_flash_init();
     assert(rc == 0);

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index f5c57ba..733f8d1 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -1661,10 +1661,6 @@ main(void)
     rc = os_msys_register(&default_mbuf_pool);
     assert(rc == 0);
 
-    /* Initialize the console (for shell and logging). */
-    rc = console_init(shell_console_rx_cb);
-    assert(rc == 0);
-
     /* Create the shell task. */
     rc = shell_task_init(SHELL_TASK_PRIO, shell_stack, SHELL_TASK_STACK_SIZE,
                          SHELL_MAX_INPUT_LEN);

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/apps/blinky/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blinky/src/main.c b/apps/blinky/src/main.c
index 24d0311..4d797b3 100755
--- a/apps/blinky/src/main.c
+++ b/apps/blinky/src/main.c
@@ -178,8 +178,6 @@ main(int argc, char **argv)
     shell_task_init(SHELL_TASK_PRIO, shell_stack, SHELL_TASK_STACK_SIZE,
                     SHELL_MAX_INPUT_LEN);
 
-    (void) console_init(shell_console_rx_cb);
-
     stats_module_init();
 
     rc = init_tasks();

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/apps/luatest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/luatest/src/main.c b/apps/luatest/src/main.c
index 76dd13f..9cd3d5a 100755
--- a/apps/luatest/src/main.c
+++ b/apps/luatest/src/main.c
@@ -88,7 +88,6 @@ main(int argc, char **argv)
     /* Init tasks */
     shell_task_init(SHELL_TASK_PRIO, shell_stack, SHELL_TASK_STACK_SIZE,
                          SHELL_MAX_INPUT_LEN);
-    console_init(shell_console_rx_cb);
 
     nffs_init();
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/apps/slinky/src/main.c
----------------------------------------------------------------------
diff --git a/apps/slinky/src/main.c b/apps/slinky/src/main.c
index f57657f..d9dd29a 100755
--- a/apps/slinky/src/main.c
+++ b/apps/slinky/src/main.c
@@ -58,7 +58,7 @@ volatile int tasks_initialized;
 int init_tasks(void);
 
 /* Task 1 */
-#define TASK1_PRIO (1)
+#define TASK1_PRIO (8)
 #define TASK1_STACK_SIZE    OS_STACK_ALIGN(128)
 #define MAX_CBMEM_BUF 600
 struct os_task task1;
@@ -66,7 +66,7 @@ os_stack_t stack1[TASK1_STACK_SIZE];
 static volatile int g_task1_loops;
 
 /* Task 2 */
-#define TASK2_PRIO (2)
+#define TASK2_PRIO (9)
 #define TASK2_STACK_SIZE    OS_STACK_ALIGN(128)
 struct os_task task2;
 os_stack_t stack2[TASK2_STACK_SIZE];
@@ -395,8 +395,6 @@ main(int argc, char **argv)
     shell_task_init(SHELL_TASK_PRIO, shell_stack, SHELL_TASK_STACK_SIZE,
                     SHELL_MAX_INPUT_LEN);
 
-    (void) console_init(shell_console_rx_cb);
-
     nmgr_task_init(NEWTMGR_TASK_PRIO, newtmgr_stack, NEWTMGR_TASK_STACK_SIZE);
     imgmgr_module_init();
     bootutil_cfg_register();

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b65435f3/libs/shell/src/shell.c
----------------------------------------------------------------------
diff --git a/libs/shell/src/shell.c b/libs/shell/src/shell.c
index 95ddcb0..4b95a2b 100644
--- a/libs/shell/src/shell.c
+++ b/libs/shell/src/shell.c
@@ -454,6 +454,7 @@ shell_task_func(void *arg)
     struct os_event *ev;
 
     console_rdy_ev.ev_type = OS_EVENT_T_CONSOLE_RDY;
+    console_init(shell_console_rx_cb);
 
     while (1) {
         ev = os_eventq_get(&shell_evq);


[2/3] incubator-mynewt-core git commit: console; don't crash if there's console output when console has not been initialized.

Posted by cc...@apache.org.
console; don't crash if there's console output when console has
not been initialized.


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

Branch: refs/heads/0_10_0_dev
Commit: f9020a0ff5a7408d1fde3e43985aadd6916b3680
Parents: b65435f
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jul 28 11:16:37 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Jul 28 12:51:00 2016 -0700

----------------------------------------------------------------------
 libs/console/full/src/cons_tty.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f9020a0f/libs/console/full/src/cons_tty.c
----------------------------------------------------------------------
diff --git a/libs/console/full/src/cons_tty.c b/libs/console/full/src/cons_tty.c
index 7dfd0b7..fb2015c 100644
--- a/libs/console/full/src/cons_tty.c
+++ b/libs/console/full/src/cons_tty.c
@@ -165,6 +165,9 @@ console_file_write(void *arg, const char *str, size_t cnt)
     struct console_tty *ct = &console_tty;
     int i;
 
+    if (!ct->ct_write_char) {
+        return cnt;
+    }
     for (i = 0; i < cnt; i++) {
         if (str[i] == '\n') {
             ct->ct_write_char('\r');