Initialize "uart" only when boot_serial is enabled

Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
Fabio Utzig 2018-02-16 14:55:28 -02:00 committed by David Brown
parent c49099c284
commit 9f7c3d2096
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ main(void)
int rc;
hal_bsp_init();
os_dev_initialize_all(OS_DEV_INIT_PRIMARY);
os_dev_initialize_all(OS_DEV_INIT_SECONDARY);
#ifdef MCUBOOT_SERIAL
/* initialize uart without os */
os_dev_initialize_all(OS_DEV_INIT_PRIMARY);
sysinit();
#else
flash_map_init();