1 /* 2 * Copyright (c) 2018 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef TEST_MODULE_H 8 #define TEST_MODULE_H 9 10 #include <zephyr/logging/log.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 void test_func(void); 17 void test_func2(void); 18 19 #ifdef __cplusplus 20 } 21 #endif 22 23 #define TEST_INLINE_DBG_MSG "inline debug" 24 #define TEST_INLINE_ERR_MSG "inline" 25 26 #define TEST_DBG_MSG "debug" 27 #define TEST_ERR_MSG "test" 28 test_inline_func(void)29static inline void test_inline_func(void) 30 { 31 LOG_MODULE_DECLARE(test, CONFIG_SAMPLE_MODULE_LOG_LEVEL); 32 33 LOG_DBG(TEST_INLINE_DBG_MSG); 34 LOG_ERR(TEST_INLINE_ERR_MSG); 35 } 36 37 #endif /* TEST_MODULE_H */ 38