apps/boot; call hal_bsp_init() as the first thing.
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/938101ba Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/938101ba Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/938101ba Branch: refs/heads/develop Commit: 938101baaff93e548d2b38fcf04124a508eac68c Parents: e3a43b0 Author: Marko Kiiskila <[email protected]> Authored: Thu Feb 9 15:25:36 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Thu Feb 9 15:25:36 2017 -0800 ---------------------------------------------------------------------- apps/boot/src/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/938101ba/apps/boot/src/boot.c ---------------------------------------------------------------------- diff --git a/apps/boot/src/boot.c b/apps/boot/src/boot.c index 6b21407..9cd59e7 100755 --- a/apps/boot/src/boot.c +++ b/apps/boot/src/boot.c @@ -43,12 +43,12 @@ main(void) struct boot_rsp rsp; int rc; -#if MYNEWT_VAL(BOOT_SERIAL) hal_bsp_init(); + +#if MYNEWT_VAL(BOOT_SERIAL) sysinit(); #else flash_map_init(); - hal_bsp_init(); /* XXX this should be before flash_map_init() */ #endif rc = boot_go(&rsp);
