zephyr/tests/subsys/logging/log_api/src/test_module.h
Gerard Marull-Paretas ade7ccb918 tests: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all tests to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 20:02:14 +02:00

38 lines
625 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef TEST_MODULE_H
#define TEST_MODULE_H
#include <zephyr/logging/log.h>
#ifdef __cplusplus
extern "C" {
#endif
void test_func(void);
void test_func2(void);
#ifdef __cplusplus
}
#endif
#define TEST_INLINE_DBG_MSG "inline debug"
#define TEST_INLINE_ERR_MSG "inline"
#define TEST_DBG_MSG "debug"
#define TEST_ERR_MSG "test"
static inline void test_inline_func(void)
{
LOG_MODULE_DECLARE(test, CONFIG_SAMPLE_MODULE_LOG_LEVEL);
LOG_DBG(TEST_INLINE_DBG_MSG);
LOG_ERR(TEST_INLINE_ERR_MSG);
}
#endif /* TEST_MODULE_H */