Initialize "uart" only when boot_serial is enabled
Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
parent
c49099c284
commit
9f7c3d2096
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue