amiro-os / core / inc / aos_confcheck.h @ f3b3fe09
History | View | Annotate | Download (3.006 KB)
1 | e545e620 | Thomas Schöpping | /*
|
---|---|---|---|
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 | 53710ca3 | Marc Rothmann | /**
|
20 | * @file aos_confcheck.h
|
||
21 | * @brief Header that checks whether all necessary configurations are correct.
|
||
22 | *
|
||
23 | * @addtogroup aos_system
|
||
24 | * @{
|
||
25 | */
|
||
26 | |||
27 | e545e620 | Thomas Schöpping | #ifndef _AMIROOS_CONFCHECK_H_
|
28 | #define _AMIROOS_CONFCHECK_H_
|
||
29 | |||
30 | #include <aosconf.h> |
||
31 | |||
32 | /*
|
||
33 | * Kernel parameters and options
|
||
34 | */
|
||
35 | |||
36 | cb835a3e | Thomas Schöpping | #ifndef AMIROOS_CFG_DBG
|
37 | #error "AMIROOS_CFG_DBG not defined in aosconf.h" |
||
38 | #endif
|
||
39 | |||
40 | e545e620 | Thomas Schöpping | #ifndef AMIROOS_CFG_TESTS_ENABLE
|
41 | #error "AMIROOS_CFG_TESTS_ENABLE not defined in aosconf.h" |
||
42 | #endif
|
||
43 | |||
44 | #ifndef AMIROOS_CFG_PROFILE
|
||
45 | #error "AMIROOS_CFG_PROFILE not defined in aosconf.h" |
||
46 | #endif
|
||
47 | |||
48 | #ifndef AMIROOS_CFG_MAIN_LOOP_TIMEOUT
|
||
49 | #error "AMIROOS_CFG_MAIN_LOOP_TIMEOUT not defined in aosconf.h" |
||
50 | #endif
|
||
51 | |||
52 | 1ef74af5 | Simon Welzel | #if (AMIROOS_CFG_SSSP_ENABLE == true) |
53 | |||
54 | e545e620 | Thomas Schöpping | /*
|
55 | 6b53f6bf | Thomas Schöpping | * SSSP parameters and options
|
56 | */
|
||
57 | |||
58 | #ifndef AMIROOS_CFG_SSSP_MASTER
|
||
59 | #error "AMIROOS_CFG_SSSP_MASTER not defined in aosconf.h" |
||
60 | #endif
|
||
61 | |||
62 | 933df08e | Thomas Schöpping | #ifndef AMIROOS_CFG_SSSP_STACK_START
|
63 | #error "AMIROOS_CFG_SSSP_STACK_START not defined in aosconf.h" |
||
64 | #endif
|
||
65 | |||
66 | #ifndef AMIROOS_CFG_SSSP_STACK_END
|
||
67 | #error "AMIROOS_CFG_SSSP_STACK_END not defined in aosconf.h" |
||
68 | #endif
|
||
69 | |||
70 | #if (AMIROOS_CFG_SSSP_STACK_START == true) && (AMIROOS_CFG_SSSP_STACK_END == true) |
||
71 | #warning "AMIROOS_CFG_SSSP_STACK_START and AMIROOS_CFG_SSSP_STACK_END both enabled in aosconf.h" |
||
72 | #if (AMIROOS_CFG_SSSP_MASTER != true) |
||
73 | #error "AMIROOS_CFG_SSSP_MASTER must be enabled in this case" |
||
74 | #endif
|
||
75 | #endif
|
||
76 | |||
77 | #ifndef AMIROOS_CFG_SSSP_SIGNALDELAY
|
||
78 | #error "AMIROOS_CFG_SSSP_SIGNALDELAY not defined in aosconf.h" |
||
79 | #endif
|
||
80 | |||
81 | 6b53f6bf | Thomas Schöpping | #ifndef AMIROOS_CFG_SSSP_SYSSYNCPERIOD
|
82 | #error "AMIROOS_CFG_SSSP_SYSSYNCPERIOD not defined in aosconf.h" |
||
83 | #endif
|
||
84 | |||
85 | 1ef74af5 | Simon Welzel | #endif
|
86 | 6b53f6bf | Thomas Schöpping | /*
|
87 | e545e620 | Thomas Schöpping | * System shell options
|
88 | */
|
||
89 | |||
90 | #ifndef AMIROOS_CFG_SHELL_ENABLE
|
||
91 | #error "AMIROOS_CFG_SHELL_ENABLE not defined in aosconf.h" |
||
92 | #endif
|
||
93 | |||
94 | #if (AMIROOS_CFG_SHELL_ENABLE == true) |
||
95 | |||
96 | #ifndef AMIROOS_CFG_SHELL_STACKSIZE
|
||
97 | #error "AMIROOS_CFG_SHELL_STACKSIZE not defined in aosconf.h" |
||
98 | #endif
|
||
99 | |||
100 | cb835a3e | Thomas Schöpping | #ifndef AMIROOS_CFG_SHELL_THREADPRIO
|
101 | #error "AMIROOS_CFG_SHELL_THREADPRIO not defined in aosconf.h" |
||
102 | #endif
|
||
103 | |||
104 | e545e620 | Thomas Schöpping | #ifndef AMIROOS_CFG_SHELL_LINEWIDTH
|
105 | #error "AMIROOS_CFG_SHELL_LINEWIDTH not defined in aosconf.h" |
||
106 | #endif
|
||
107 | |||
108 | #ifndef AMIROOS_CFG_SHELL_MAXARGS
|
||
109 | #error "AMIROOS_CFG_SHELL_MAXARGS not defined in aosconf.h" |
||
110 | #endif
|
||
111 | |||
112 | #endif /* AMIROOS_CFG_SHELL_ENABLE == true */ |
||
113 | |||
114 | #endif /* _AMIROOS_CONFCHECK_H_ */ |
||
115 | 53710ca3 | Marc Rothmann | |
116 | /** @} */ |