Revision 46471486 inc/urt_confcheck.h
| inc/urt_confcheck.h | ||
|---|---|---|
| 3 | 3 |
applications. It was developed as part of the software habitat for the |
| 4 | 4 |
Autonomous Mini Robot [1] (AMiRo) but can be used for other purposes as well. |
| 5 | 5 |
|
| 6 |
Copyright (C) 2018..2019 Thomas Schöpping et al.
|
|
| 6 |
Copyright (C) 2018..2020 Thomas Schöpping et al.
|
|
| 7 | 7 |
|
| 8 | 8 |
This program is free software: you can redistribute it and/or modify |
| 9 | 9 |
it under the terms of the GNU General Public License as published by |
| ... | ... | |
| 19 | 19 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | 20 |
*/ |
| 21 | 21 |
|
| 22 |
#ifndef _URTWARE_CONFCHECK_H_
|
|
| 23 |
#define _URTWARE_CONFCHECK_H_
|
|
| 22 |
#ifndef URT_CONFCHECK_H
|
|
| 23 |
#define URT_CONFCHECK_H
|
|
| 24 | 24 |
|
| 25 |
#include <urtwareconf.h> |
|
| 25 |
#include <urtware.h> |
|
| 26 |
|
|
| 27 |
/*============================================================================*/ |
|
| 28 |
/* CONSTANTS */ |
|
| 29 |
/*============================================================================*/ |
|
| 30 |
|
|
| 31 |
/*============================================================================*/ |
|
| 32 |
/* SETTINGS */ |
|
| 33 |
/*============================================================================*/ |
|
| 34 |
|
|
| 35 |
/*============================================================================*/ |
|
| 36 |
/* CHECKS */ |
|
| 37 |
/*============================================================================*/ |
|
| 38 |
|
|
| 39 |
/* general parameters and options */ |
|
| 26 | 40 |
|
| 27 | 41 |
#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 |
# error "URT_CFG_DELAY_WIDTH not defined in urtwareconf.h" |
|
| 43 |
#endif /* !defined(URT_CFG_DELAY_WIDTH) */ |
|
| 42 | 44 |
|
| 43 | 45 |
#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_ */ |
|
| 46 |
# error "URT_CFG_NODESTAGE_WIDTH not defined in urtwareconf.h" |
|
| 47 |
#endif /* !defined(URT_CFG_NODESTAGE_WIDTH) */ |
|
| 48 |
|
|
| 49 |
#if !defined(URT_CFG_DEBUG_ENABLED) |
|
| 50 |
# error "URT_CFG_DEBUG_ENABLED not defined in urtwareconf.h" |
|
| 51 |
#endif /* !defined(URT_CFG_DEBUG_ENABLED) */ |
|
| 52 |
|
|
| 53 |
/* publish-subscribe parameters and options */ |
|
| 54 |
|
|
| 55 |
#if !defined(URT_CFG_PUBSUB_ENABLED) |
|
| 56 |
# error "URT_CFG_PUBSUB_ENABLED not defined in urtwareconf.h" |
|
| 57 |
#endif /* !defined(URT_CFG_PUBSUB_ENABLED) */ |
|
| 58 |
|
|
| 59 |
#if (URT_CFG_PUBSUB_ENABLED == true) |
|
| 60 |
|
|
| 61 |
# if !defined(URT_CFG_PUBSUB_TOPICID_WIDTH) |
|
| 62 |
# error "URT_CFG_PUBSUB_TOPICID_WIDTH not defined in urtwareconf.h" |
|
| 63 |
# endif /* !defined(URT_CFG_PUBSUB_TOPICID_WIDTH) */ |
|
| 64 |
|
|
| 65 |
# if !defined(URT_CFG_PUBSUB_PROFILING) |
|
| 66 |
# error "URT_CFG_PUBSUB_PROFILING not defined in urtwareconf.h" |
|
| 67 |
# endif /* !defined(URT_CFG_PUBSUB_PROFILING) */ |
|
| 68 |
|
|
| 69 |
# if !defined(URT_CFG_PUBSUB_QOS_DEADLINECHECKS) |
|
| 70 |
# error "URT_CFG_PUBSUB_QOS_DEADLINECHECKS not defined in urtwareconf.h" |
|
| 71 |
# endif /* !defined(URT_CFG_PUBSUB_QOS_DEADLINECHECKS) */ |
|
| 72 |
|
|
| 73 |
# if !defined(URT_CFG_PUBSUB_QOS_RATECHECKS) |
|
| 74 |
# error "URT_CFG_PUBSUB_QOS_RATECHECKS not defined in urtwareconf.h" |
|
| 75 |
# endif /* !defined(URT_CFG_PUBSUB_QOS_RATECHECKS) */ |
|
| 76 |
|
|
| 77 |
# if !defined(URT_CFG_PUBSUB_QOS_JITTERCHECKS) |
|
| 78 |
# error "URT_CFG_PUBSUB_QOS_JITTERCHECKS not defined in urtwareconf.h" |
|
| 79 |
# endif /* !defined(URT_CFG_PUBSUB_QOS_JITTERCHECKS) */ |
|
| 80 |
|
|
| 81 |
#endif /* URT_CFG_PUBSUB_ENABLED == true */ |
|
| 82 |
|
|
| 83 |
/* remote procedure call parameters and options */ |
|
| 84 |
|
|
| 85 |
#if !defined(URT_CFG_RPC_ENABLED) |
|
| 86 |
# error "URT_CFG_RPC_ENABLED not defined in urtwareconf.h" |
|
| 87 |
#endif /* !defined(URT_CFG_RPC_ENABLED) */ |
|
| 88 |
|
|
| 89 |
#if (URT_CFG_RPC_ENABLED == true) |
|
| 90 |
|
|
| 91 |
# if !defined(URT_CFG_RPC_SERVICEID_WIDTH) |
|
| 92 |
# error "URT_CFG_RPC_SERVICEID_WIDTH not defined in urtwareconf.h" |
|
| 93 |
# endif /* !defined(URT_CFG_RPC_SERVICEID_WIDTH) */ |
|
| 94 |
|
|
| 95 |
# if !defined(URT_CFG_RPC_PROFILING) |
|
| 96 |
# error "URT_CFG_RPC_PROFILING not defined in urtwareconf.h" |
|
| 97 |
# endif /* !defined(URT_CFG_RPC_PROFILING) */ |
|
| 98 |
|
|
| 99 |
# if !defined(URT_CFG_RPC_QOS_DEADLINECHECKS) |
|
| 100 |
# error "URT_CFG_RPC_QOS_DEADLINECHECKS not defined in urtwareconf.h" |
|
| 101 |
# endif /* !defined(URT_CFG_RPC_QOS_DEADLINECHECKS) */ |
|
| 102 |
|
|
| 103 |
# if !defined(URT_CFG_RPC_QOS_JITTERCHECKS) |
|
| 104 |
# error "URT_CFG_RPC_QOS_JITTERCHECKS not defined in urtwareconf.h" |
|
| 105 |
# endif /* !defined(URT_CFG_RPC_QOS_JITTERCHECKS) */ |
|
| 106 |
|
|
| 107 |
#endif /* URT_CFG_RPC_ENABLED == true */ |
|
| 108 |
|
|
| 109 |
/*============================================================================*/ |
|
| 110 |
/* DATA STRUCTURES AND TYPES */ |
|
| 111 |
/*============================================================================*/ |
|
| 112 |
|
|
| 113 |
/*============================================================================*/ |
|
| 114 |
/* MACROS */ |
|
| 115 |
/*============================================================================*/ |
|
| 116 |
|
|
| 117 |
/*============================================================================*/ |
|
| 118 |
/* EXTERN DECLARATIONS */ |
|
| 119 |
/*============================================================================*/ |
|
| 120 |
|
|
| 121 |
/*============================================================================*/ |
|
| 122 |
/* INLINE FUNCTIONS */ |
|
| 123 |
/*============================================================================*/ |
|
| 124 |
|
|
| 125 |
#endif /* URT_CONFCHECK_H */ |
|
Also available in: Unified diff