| * Copyright (c) 2020 Intel Corporation |
| * SPDX-License-Identifier: Apache-2.0 |
| #if defined(CONFIG_MULTITHREADING) && defined(CONFIG_BOOT_DELAY) && \ |
| #define BOOT_DELAY_BANNER " (delayed boot " STRINGIFY(CONFIG_BOOT_DELAY) "ms)" |
| #define BOOT_DELAY_BANNER "" |
| #if defined(CONFIG_BOOT_DELAY) || CONFIG_BOOT_DELAY > 0 |
| #if defined(CONFIG_BOOT_DELAY) && CONFIG_BOOT_DELAY > 0 |
| static const unsigned int boot_delay = CONFIG_BOOT_DELAY; |
| static const unsigned int boot_delay; |
| if (boot_delay > 0 && IS_ENABLED(CONFIG_MULTITHREADING)) { |
| printk("***** delaying boot " STRINGIFY( |
| CONFIG_BOOT_DELAY) "ms (per build configuration) *****\n"); |
| k_busy_wait(CONFIG_BOOT_DELAY * USEC_PER_MSEC); |
| #if defined(CONFIG_BOOT_BANNER) |
| printk("*** Booting Zephyr OS build %s %s ***\n", |
| STRINGIFY(BUILD_VERSION), BOOT_DELAY_BANNER); |
| printk("*** Booting Zephyr OS version %s %s ***\n", |
| KERNEL_VERSION_STRING, BOOT_DELAY_BANNER); |