Revision 8543d0d9 modules/RT-STM32L476RG-NUCLEO64/aosconf.h
modules/RT-STM32L476RG-NUCLEO64/aosconf.h | ||
---|---|---|
1 | 1 |
/* |
2 | 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.
|
|
3 |
Copyright (C) 2016..2019 Thomas Schöpping et al.
|
|
4 | 4 |
|
5 | 5 |
This program is free software: you can redistribute it and/or modify |
6 | 6 |
it under the terms of the GNU General Public License as published by |
... | ... | |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
/** |
20 |
* @file
|
|
20 |
* @file |
|
21 | 21 |
* @brief AMiRo-OS Configuration file for the PowerManagement v1.1 module. |
22 | 22 |
* @details Contains the application specific AMiRo-OS settings. |
23 | 23 |
* |
... | ... | |
62 | 62 |
|
63 | 63 |
/** |
64 | 64 |
* @brief Flag to enable/disable unit tests. |
65 |
* @note Setting this flag will implicitely enable the shell. |
|
65 | 66 |
*/ |
66 | 67 |
#if !defined(OS_CFG_TESTS_ENABLE) |
67 |
#define AMIROOS_CFG_TESTS_ENABLE true
|
|
68 |
#define AMIROOS_CFG_TESTS_ENABLE false
|
|
68 | 69 |
#else |
69 | 70 |
#define AMIROOS_CFG_TESTS_ENABLE OS_CFG_TESTS_ENABLE |
70 | 71 |
#endif |
... | ... | |
79 | 80 |
#endif |
80 | 81 |
|
81 | 82 |
/** |
83 |
* @brief Mask for the control thread to listen to certain IO events. |
|
84 |
* @note Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration. |
|
85 |
*/ |
|
86 |
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK) |
|
87 |
#define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK MODULE_OS_IOEVENTFLAGS_USERBUTTON |
|
88 |
#else |
|
89 |
#define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK OS_CFG_MAIN_LOOP_IOEVENT_MASK |
|
90 |
#endif |
|
91 |
|
|
92 |
/** |
|
82 | 93 |
* @brief Timeout value when waiting for events in the main loop in microseconds. |
83 | 94 |
* @details A value of 0 deactivates the timeout. |
84 | 95 |
*/ |
... | ... | |
106 | 117 |
#define AMIROOS_CFG_SSSP_ENABLE OS_CFG_SSSP_ENABLE |
107 | 118 |
#endif |
108 | 119 |
|
109 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
110 | 120 |
/** |
111 | 121 |
* @brief Flag to set the module as SSSP master. |
112 | 122 |
* @details There must be only one module with this flag set to true in a system. |
113 | 123 |
*/ |
114 | 124 |
#if !defined(OS_CFG_SSSP_MASTER) |
115 |
#define AMIROOS_CFG_SSSP_MASTER true
|
|
125 |
#define AMIROOS_CFG_SSSP_MASTER false
|
|
116 | 126 |
#else |
117 | 127 |
#define AMIROOS_CFG_SSSP_MASTER OS_CFG_SSSP_MASTER |
118 | 128 |
#endif |
... | ... | |
122 | 132 |
* @details There must be only one module with this flag set to true in a system. |
123 | 133 |
*/ |
124 | 134 |
#if !defined(OS_CFG_SSSP_STACK_START) |
125 |
#define AMIROOS_CFG_SSSP_STACK_START true
|
|
135 |
#define AMIROOS_CFG_SSSP_STACK_START false
|
|
126 | 136 |
#else |
127 | 137 |
#define AMIROOS_CFG_SSSP_STACK_START OS_CFG_SSSP_STACK_START |
128 | 138 |
#endif |
... | ... | |
132 | 142 |
* @details There must be only one module with this flag set to true in a system. |
133 | 143 |
*/ |
134 | 144 |
#if !defined(OS_CFG_SSSP_STACK_END) |
135 |
#define AMIROOS_CFG_SSSP_STACK_END true
|
|
145 |
#define AMIROOS_CFG_SSSP_STACK_END false
|
|
136 | 146 |
#else |
137 | 147 |
#define AMIROOS_CFG_SSSP_STACK_END OS_CFG_SSSP_STACK_END |
138 | 148 |
#endif |
... | ... | |
157 | 167 |
#define AMIROOS_CFG_SSSP_SYSSYNCPERIOD OS_CFG_SSSP_SYSSYNCPERIOD |
158 | 168 |
#endif |
159 | 169 |
|
160 |
#endif |
|
161 | 170 |
/** @} */ |
162 | 171 |
|
163 | 172 |
/*===========================================================================*/ |
... | ... | |
170 | 179 |
/** |
171 | 180 |
* @brief Shell enable flag. |
172 | 181 |
*/ |
173 |
#if !defined(OS_CFG_SHELL_ENABLE) && (AMIROOS_CFG_TESTS_ENABLE != true) |
|
174 |
#define AMIROOS_CFG_SHELL_ENABLE true |
|
175 |
#elif (AMIROOS_CFG_TESTS_ENABLE == true) |
|
182 |
#if !defined(OS_CFG_SHELL_ENABLE) |
|
176 | 183 |
#define AMIROOS_CFG_SHELL_ENABLE true |
177 | 184 |
#else |
178 | 185 |
#define AMIROOS_CFG_SHELL_ENABLE OS_CFG_SHELL_ENABLE |
Also available in: Unified diff