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/11/10 22:40:21 UTC

[3/3] incubator-mynewt-blinky git commit: blinky - use sysinit.

blinky - use sysinit.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/commit/ea4b8b8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/tree/ea4b8b8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/diff/ea4b8b8b

Branch: refs/heads/master
Commit: ea4b8b8ba73c21cb597bc7e886d7b48696b5eebe
Parents: 05b4cc4
Author: Christopher Collins <cc...@apache.org>
Authored: Sun Oct 2 13:42:26 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Sun Oct 2 13:42:26 2016 -0700

----------------------------------------------------------------------
 apps/blinky/src/main.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/blob/ea4b8b8b/apps/blinky/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blinky/src/main.c b/apps/blinky/src/main.c
index dac38ac..f822f87 100755
--- a/apps/blinky/src/main.c
+++ b/apps/blinky/src/main.c
@@ -16,13 +16,16 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
+#include <assert.h>
+#include <string.h>
+
+#include "sysinit/sysinit.h"
 #include "os/os.h"
 #include "bsp/bsp.h"
 #include "hal/hal_gpio.h"
-#include <assert.h>
-#include <string.h>
 #ifdef ARCH_sim
-#include <mcu/mcu_sim.h>
+#include "mcu/mcu_sim.h"
 #endif
 
 /* Init all tasks */
@@ -99,7 +102,7 @@ main(int argc, char **argv)
     mcu_sim_parse_args(argc, argv);
 #endif
 
-    os_init();
+    sysinit();
 
     rc = init_tasks();
     os_start();