Infuse-IoT SDK API
0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1
10
#ifndef INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_CORE_H_
11
#define INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_CORE_H_
12
13
#include <zephyr/kernel.h>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
24
/* clang-format off */
33
#define _VALIDATION_REPORT(system, result, fmt, ...) \
34
printk("%06d:%s:%s:" fmt "\n", k_uptime_get_32(), system, \
35
result __VA_OPT__(,) __VA_ARGS__)
36
/* clang-format on */
37
45
#define VALIDATION_REPORT_INFO(system, fmt, ...) \
46
_VALIDATION_REPORT(system, "INFO", fmt, __VA_ARGS__)
47
56
#define VALIDATION_REPORT_VALUE(system, name, fmt, ...) \
57
printk("%06d:%s:VAL:" name ":" fmt "\n", k_uptime_get_32(), system, __VA_ARGS__)
58
66
#define VALIDATION_REPORT_ERROR(system, fmt, ...) \
67
_VALIDATION_REPORT(system, "ERROR", fmt, __VA_ARGS__)
68
76
#define VALIDATION_REPORT_PASS(system, fmt, ...) \
77
_VALIDATION_REPORT(system, "PASS", fmt, __VA_ARGS__)
78
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
/* INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_CORE_H_ */
infuse
validation
core.h
Generated on Thu Sep 11 2025 11:38:52 for Infuse-IoT SDK API by
1.12.0