Remove leading/trailing blank lines in .c, .h, .py, .rst, .yml, and .yaml files. Will avoid failures with the new CI test in https://github.com/zephyrproject-rtos/ci-tools/pull/112, though it only checks changed files. Move the 'target-notes' target in boards/xtensa/odroid_go/doc/index.rst to get rid of the trailing blank line there. It was probably misplaced. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
33 lines
623 B
C
33 lines
623 B
C
/*
|
|
* Copyright (c) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <ztest.h>
|
|
|
|
#define NSEC_PER_MSEC (u64_t)(NSEC_PER_USEC * USEC_PER_MSEC)
|
|
/**
|
|
* @brief Test delay during boot
|
|
* @defgroup kernel_bootdelay_tests Init
|
|
* @ingroup all_tests
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief This module verifies the delay specified during boot.
|
|
*/
|
|
void test_verify_bootdelay(void)
|
|
{
|
|
u32_t current_cycles = k_cycle_get_32();
|
|
|
|
/* compare this with the boot delay specified */
|
|
zassert_true(k_cyc_to_ns_floor64(current_cycles) >=
|
|
(NSEC_PER_MSEC * CONFIG_BOOT_DELAY),
|
|
"boot delay not executed");
|
|
}
|
|
|
|
/**
|
|
* @}
|
|
*/
|