amiro-os / os / amiroos.h @ 780997c4
History | View | Annotate | Download (2.347 KB)
1 |
/*
|
---|---|
2 |
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
|
3 |
Copyright (C) 2016..2018 Thomas Schöpping et al.
|
4 |
|
5 |
This program is free software: you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
7 |
the Free Software Foundation, either version 3 of the License, or
|
8 |
(at your option) any later version.
|
9 |
|
10 |
This program is distributed in the hope that it will be useful,
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
GNU General Public License for more details.
|
14 |
|
15 |
You should have received a copy of the GNU General Public License
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17 |
*/
|
18 |
|
19 |
#ifndef _AMIROOS_H_
|
20 |
#define _AMIROOS_H_
|
21 |
|
22 |
/**
|
23 |
* @brief AMiRo-OS identification macro.
|
24 |
*/
|
25 |
#define _AMIRO_OS_
|
26 |
|
27 |
/**
|
28 |
* @name AMiRo-OS version and relase information.
|
29 |
* @{
|
30 |
*/
|
31 |
|
32 |
/**
|
33 |
* @brief The type of this version.
|
34 |
* @note Is one of "pre-alpha", "alpha", "beta", "release candidate", "release".
|
35 |
*/
|
36 |
#define AMIROOS_RELEASE_TYPE "beta" |
37 |
|
38 |
/**
|
39 |
* @brief The operating system major version.
|
40 |
* @note Changes of the major version imply incompatibilities.
|
41 |
*/
|
42 |
#define AMIROOS_VERSION_MAJOR 2 |
43 |
|
44 |
/**
|
45 |
* @brief The operating system minor version.
|
46 |
* @note A higher minor version implies new functionalty, but all old interfaces are still available.
|
47 |
*/
|
48 |
#define AMIROOS_VERSION_MINOR 0 |
49 |
|
50 |
/**
|
51 |
* @brief The operating system patch level.
|
52 |
*/
|
53 |
#define AMIROOS_VERSION_PATCH 0 |
54 |
|
55 |
/** @} */
|
56 |
|
57 |
/* subsystems headers */
|
58 |
#include <aosconf.h> |
59 |
#include <hal.h> |
60 |
#if defined(HAL_USE_QEI) && (HAL_USE_QEI == TRUE)
|
61 |
#include <hal_qei.h> |
62 |
#endif
|
63 |
#include <ch.h> |
64 |
|
65 |
/* configuration check */
|
66 |
#if !defined(_AMIRO_OS_CFG_)
|
67 |
#error "invalid AMiRo-OS configuration file" |
68 |
#endif
|
69 |
#if (_AMIRO_OS_CFG_VERSION_MAJOR_ != AMIROOS_VERSION_MAJOR) || (_AMIRO_OS_CFG_VERSION_MINOR_ < AMIROOS_VERSION_MINOR)
|
70 |
#error "incompatible AMiRo-OS configuration file" |
71 |
#endif
|
72 |
#include "core/inc/aos_confcheck.h" |
73 |
|
74 |
/* core headers */
|
75 |
#include "core/inc/aos_debug.h" |
76 |
#include <core/inc/aos_iostream.h> |
77 |
#include "core/inc/aos_shell.h" |
78 |
#include "core/inc/aos_system.h" |
79 |
#include "core/inc/aos_thread.h" |
80 |
#include "core/inc/aos_time.h" |
81 |
#include "core/inc/aos_timer.h" |
82 |
#include "core/inc/aos_types.h" |
83 |
#include "core/inc/aos_unittest.h" |
84 |
|
85 |
#endif /* _AMIROOS_H_ */ |