Commit 821214e3 authored by Krzysztof Chruscinski's avatar Krzysztof Chruscinski Committed by David Brown
Browse files

zephyr: Wrap sleep value with K_MSEC

Zephyr timeout API is changing and will use opaque value (k_timeout_t)
instead of raw values. K_MSEC is used to convert raw milliseconds value
to k_timeout_t.

This change is backward compatible so can be merged independently.

Signed-off-by: default avatarKrzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
parent d071356a
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/zephyr/main.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ const struct boot_uart_funcs boot_funcs = {
#else
#include <logging/log_ctrl.h>

#define BOOT_LOG_PROCESSING_INTERVAL 30 /* [ms] */
#define BOOT_LOG_PROCESSING_INTERVAL K_MSEC(30) /* [ms] */

/* log are processing in custom routine */
K_THREAD_STACK_DEFINE(boot_log_stack, CONFIG_MCUBOOT_LOG_THREAD_STACK_SIZE);