Revision 46471486 urtware.h
urtware.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_H_
|
|
23 |
#define _URTWARE_H_
|
|
22 |
#ifndef URTWARE_H
|
|
23 |
#define URTWARE_H
|
|
24 | 24 |
|
25 | 25 |
/** |
26 | 26 |
* @brief µRtWare identification macro. |
27 | 27 |
*/ |
28 | 28 |
#define _uRtWare_ |
29 | 29 |
|
30 |
/*============================================================================*/ |
|
30 | 31 |
/** |
31 | 32 |
* @name µRtWare version and release information. |
32 | 33 |
* @{ |
33 | 34 |
*/ |
35 |
/*============================================================================*/ |
|
34 | 36 |
|
35 | 37 |
/** |
36 | 38 |
* @brief Release type of this version. |
... | ... | |
69 | 71 |
|
70 | 72 |
/** @} */ |
71 | 73 |
|
74 |
/*============================================================================*/ |
|
75 |
/* CONFIGURATION & VERIFICATION */ |
|
76 |
/*============================================================================*/ |
|
77 |
|
|
72 | 78 |
#include <urtwareconf.h> |
79 |
|
|
73 | 80 |
#if !defined(_URTWARE_CFG_) |
74 |
#error "invalid µRtWare configuration file" |
|
75 |
#endif |
|
76 |
#if (URTWARE_CFG_VERSION_MAJOR != URTWARE_VERSION_MAJOR) || (URTWARE_CFG_VERSION_MINOR < URTWARE_VERSION_MINOR) |
|
77 |
#error "incompatible µRtWare configuration file" |
|
81 |
# error "invalid µRtWare configuration file" |
|
82 |
#elif (URTWARE_CFG_VERSION_MAJOR != URTWARE_VERSION_MAJOR) || (URTWARE_CFG_VERSION_MAJOR < URTWARE_VERSION_MAJOR) |
|
83 |
# error "incompatible µRtWare configuration file" |
|
78 | 84 |
#endif |
85 |
|
|
79 | 86 |
#include <urt_confcheck.h> |
80 | 87 |
|
81 |
#include <urt_osal.h> |
|
82 |
#if !defined(URT_OSAL_VERSION_MAJOR) || !defined(URT_OSAL_VERSION_MINOR) |
|
83 |
#error "invalid µRt-OSAL implementation" |
|
84 |
#endif |
|
85 |
#if (URT_OSAL_VERSION_MAJOR != URT_OSAL_REQUIRED_MAJOR) || (URT_OSAL_VERSION_MINOR < URT_OSAL_REQUIRED_MINOR) |
|
86 |
#error "incompatible µRt-OSAL implementation" |
|
88 |
#include <urt_primitives.h> |
|
89 |
|
|
90 |
#if defined(URT_CFG_OSAL_HEADER) |
|
91 |
# include URT_CFG_OSAL_HEADER |
|
87 | 92 |
#endif |
93 |
#include <urt_osal.h> |
|
94 |
|
|
95 |
/* |
|
96 |
* TODO: Add further µRtWare includes here (e.g. urt_core.h). |
|
97 |
*/ |
|
88 | 98 |
|
89 |
#endif /* _URTWARE_H_ */ |
|
99 |
#endif /* URTWARE_H */ |
Also available in: Unified diff