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/08/19 23:39:17 UTC
[2/3] incubator-mynewt-core git commit: boot;
boot loader does not need to call os_init() anymore, as bsp_init()
has been exported.
boot; boot loader does not need to call os_init() anymore, as bsp_init()
has been exported.
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/c3cd5b18
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c3cd5b18
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c3cd5b18
Branch: refs/heads/develop
Commit: c3cd5b181b68d43b082ee1c50084513bf52a32b7
Parents: 2389573
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Aug 19 16:38:02 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Aug 19 16:38:02 2016 -0700
----------------------------------------------------------------------
apps/boot/src/boot.c | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c3cd5b18/apps/boot/src/boot.c
----------------------------------------------------------------------
diff --git a/apps/boot/src/boot.c b/apps/boot/src/boot.c
index 8ffcb1f..7323701 100755
--- a/apps/boot/src/boot.c
+++ b/apps/boot/src/boot.c
@@ -23,6 +23,7 @@
#include <hal/flash_map.h>
#include <os/os.h>
#include <bsp/bsp.h>
+#include <hal/hal_bsp.h>
#include <hal/hal_system.h>
#include <hal/hal_flash.h>
#include <config/config.h>
@@ -66,7 +67,11 @@ main(void)
.br_slot_areas = img_starts,
};
+#ifdef BOOT_SERIAL
os_init();
+#else
+ bsp_init();
+#endif
rc = hal_flash_init();
assert(rc == 0);