forked from rtlabs-com/i-link
-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.h.in
96 lines (75 loc) · 2 KB
/
options.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2021 rt-labs AB, Sweden.
*
* This software is dual-licensed under GPLv3 and a commercial
* license. See the file LICENSE.md distributed with this software for
* full license information.
********************************************************************/
#ifndef OPTIONS_H
#define OPTIONS_H
/* #undef WITH_MALLOC */
#cmakedefine LOG_ENABLE
#cmakedefine WITH_MALLOC
/*
* Supported IO-Link HW
*/
#define IOLINK_HW_NONE 0
#define IOLINK_HW_MAX14819 1
#ifndef LOG_LEVEL
#define LOG_LEVEL (LOG_LEVEL_@LOG_LEVEL@)
#endif
#ifndef IOLINK_PL_LOG
#define IOLINK_PL_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_DL_LOG
#define IOLINK_DL_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_AL_LOG
#define IOLINK_AL_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_SM_LOG
#define IOLINK_SM_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_CM_LOG
#define IOLINK_CM_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_DS_LOG
#define IOLINK_DS_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_ODE_LOG
#define IOLINK_ODE_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_PDE_LOG
#define IOLINK_PDE_LOG (LOG_STATE_ON)
#endif
#ifndef IOLINK_NUM_PORTS
#define IOLINK_NUM_PORTS (@IOLINK_NUM_PORTS@)
#endif
#ifndef IOLINK_NUM_DIAG_ENTRIES
#define IOLINK_NUM_DIAG_ENTRIES (@IOLINK_NUM_DIAG_ENTRIES@)
#endif
#ifndef IOLINK_MAX_EVENTS
#define IOLINK_MAX_EVENTS (@IOLINK_MAX_EVENTS@)
#endif
/*
* IO-Link HW
*/
#ifndef IOLINK_HW
#define IOLINK_HW IOLINK_HW_MAX14819
#endif
#if IOLINK_HW == IOLINK_HW_MAX14819
#define IOLINK_MAX14819_IRQ_GPIO
//#define IOLINK_MAX14819_IRQ_SPI
//#define IOLINK_MAX14819_RXRDY_GPIO
#define IOLINK_MAX14819_RXRDY_SPI
//#define IOLINK_MAX14819_RXERR_GPIO
#define IOLINK_MAX14819_RXERR_SPI
#endif
#endif /* OPTIONS_H */