1 /* 2 * Copyright (c) 2018 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef SAMPLE_MODULE_H 7 #define SAMPLE_MODULE_H 8 9 #include <zephyr/logging/log.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #define MODULE_NAME sample_module 16 17 const char *sample_module_name_get(void); 18 void sample_module_func(void); 19 inline_func(void)20static inline void inline_func(void) 21 { 22 LOG_MODULE_DECLARE(MODULE_NAME, CONFIG_SAMPLE_MODULE_LOG_LEVEL); 23 24 LOG_INF("Inline function."); 25 } 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif /* SAMPLE_MODULE_H */ 32