Commit 960a2d61 authored by Andrzej Puzdrowski's avatar Andrzej Puzdrowski
Browse files

zephyr: allow to disable timers supports

For some basic mcuboot configurations the zephyr timers are
not required which reduce the flash footprint significantly.

Signed-off-by: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent f0dbd422
Loading
Loading
Loading
Loading
+2
Changes for boot/zephyr/main.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -74,7 +74,9 @@ static void do_boot(struct boot_rsp *rsp)
                                     rsp->br_image_off +
                                     rsp->br_hdr->ih_hdr_size);
    irq_lock();
#ifdef CONFIG_SYS_CLOCK_EXISTS
    sys_clock_disable();
#endif
#ifdef CONFIG_USB
    /* Disable the USB to prevent it from firing interrupts */
    usb_disable();