urtware / inc / urt_confcheck.h @ 017b2ac7
History | View | Annotate | Download (1.967 KB)
1 | 42470f0a | Thomas Schöpping | /*
|
---|---|---|---|
2 | µRtWare is a lightweight publish/subscribe middleware for real-time
|
||
3 | applications. It was developed as part of the software habitat for the
|
||
4 | Autonomous Mini Robot [1] (AMiRo) but can be used for other purposes as well.
|
||
5 | |||
6 | 1fb06240 | skenneweg | Copyright (C) 2018..2020 Thomas Schöpping et al.
|
7 | 42470f0a | Thomas Schöpping | |
8 | This program is free software: you can redistribute it and/or modify
|
||
9 | it under the terms of the GNU General Public License as published by
|
||
10 | the Free Software Foundation, either version 3 of the License, or
|
||
11 | (at your option) any later version.
|
||
12 | |||
13 | This program is distributed in the hope that it will be useful,
|
||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | GNU General Public License for more details.
|
||
17 | |||
18 | You should have received a copy of the GNU General Public License
|
||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
20 | */
|
||
21 | |||
22 | #ifndef _URTWARE_CONFCHECK_H_
|
||
23 | #define _URTWARE_CONFCHECK_H_
|
||
24 | |||
25 | #include <urtwareconf.h> |
||
26 | |||
27 | #if !defined(URT_CFG_DELAY_WIDTH)
|
||
28 | #error "URT_CFG_DELAY_WIDTH not defined in urtwareconf.h" |
||
29 | #else
|
||
30 | #if !(URT_CFG_DELAY_WIDTH == 32 || URT_CFG_DELAY_WIDTH == 64) |
||
31 | #error "URT_CFG_DELAY_WIDTH set to illegal value in urtwareconf.h" |
||
32 | #endif
|
||
33 | #endif
|
||
34 | |||
35 | #if !defined(URT_CFG_TOPICID_WIDTH)
|
||
36 | #error "URT_CFG_TOPICID_WIDTH not defined in urtwareconf.h" |
||
37 | #else
|
||
38 | #if !(URT_CFG_TOPICID_WIDTH == 8 || URT_CFG_TOPICID_WIDTH == 16 || URT_CFG_TOPICID_WIDTH == 32 || URT_CFG_TOPICID_WIDTH == 64) |
||
39 | #error "URT_CFG_TOPICID_WIDTH set to illegal value in urtwareconf.h" |
||
40 | #endif
|
||
41 | #endif
|
||
42 | |||
43 | #if !defined(URT_CFG_NODESTAGE_WIDTH)
|
||
44 | #error "URT_CFG_NODESTAGE_WIDTH not defined in urtwareconf.h" |
||
45 | #else
|
||
46 | #if !(URT_CFG_NODESTAGE_WIDTH == 8 || URT_CFG_NODESTAGE_WIDTH == 16 || URT_CFG_NODESTAGE_WIDTH == 32 || URT_CFG_NODESTAGE_WIDTH == 64) |
||
47 | #error "URT_CFG_NODESTAGE_WIDTH set to illegal value in urtwareconf.h" |
||
48 | #endif
|
||
49 | #endif
|
||
50 | |||
51 | #if !defined(URT_CFG_DEBUG)
|
||
52 | #error "URT_CFG_DEBUG not defined in urtwareconf.h" |
||
53 | #endif
|
||
54 | |||
55 | #endif /* _URTWARE_CONFCHECK_H_ */ |