1 /* vl53l0x_platform_log.h - Zephyr customization of ST vl53l0x library,
2  * logging functions, not implemented
3  */
4 
5 /*
6  * Copyright (c) 2017 STMicroelectronics
7  *
8  * SPDX-License-Identifier: Apache-2.0
9  */
10 
11 
12 #ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_LOG_H_
13 #define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_LOG_H_
14 
15 #include <stdio.h>
16 #include <string.h>
17 /* LOG Functions */
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 enum {
24 	TRACE_LEVEL_NONE,
25 	TRACE_LEVEL_ERRORS,
26 	TRACE_LEVEL_WARNING,
27 	TRACE_LEVEL_INFO,
28 	TRACE_LEVEL_DEBUG,
29 	TRACE_LEVEL_ALL,
30 	TRACE_LEVEL_IGNORE
31 };
32 
33 enum {
34 	TRACE_FUNCTION_NONE = 0,
35 	TRACE_FUNCTION_I2C  = 1,
36 	TRACE_FUNCTION_ALL  = 0x7fffffff /* all bits except sign */
37 };
38 
39 enum {
40 	TRACE_MODULE_NONE              = 0x0,
41 	TRACE_MODULE_API               = 0x1,
42 	TRACE_MODULE_PLATFORM          = 0x2,
43 	TRACE_MODULE_ALL               = 0x7fffffff /* all bits except sign */
44 };
45 
46 #define _LOG_FUNCTION_START(module, fmt, ...) (void)0
47 #define _LOG_FUNCTION_END(module, status, ...) (void)0
48 #define _LOG_FUNCTION_END_FMT(module, status, fmt, ...) (void)0
49 
50 #define VL53L0X_COPYSTRING(str, ...) strcpy(str, ##__VA_ARGS__)
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif  /* ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_LOG_H_ */
57