Revision 47e89ebf
core/inc/aos_confcheck.h | ||
---|---|---|
65 | 65 |
#error "AMIROOS_CFG_SSSP_ENABLE not defined in aosconf.h" |
66 | 66 |
#endif /* !defined(AMIROOS_CFG_SSSP_ENABLE) */ |
67 | 67 |
|
68 |
# if (AMIROOS_CFG_SSSP_ENABLE == true)
|
|
68 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
69 | 69 |
|
70 | 70 |
#if !defined(AMIROOS_CFG_SSSP_MASTER) |
71 | 71 |
#error "AMIROOS_CFG_SSSP_MASTER not defined in aosconf.h" |
... | ... | |
123 | 123 |
#else /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
124 | 124 |
|
125 | 125 |
#if (AMIROOS_CFG_TESTS_ENABLE == true) |
126 |
#pragma message "AMiRo-OS shell enabled implicitely via AMIROOS_CFG_TESTS_ENABLE"
|
|
126 |
#error "Enabling AMIROOS_CFG_TESTS_ENABLE in aosconf.h requires AMIROOS_CFG_SHELL_ENABLE to be enabled as well."
|
|
127 | 127 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
128 | 128 |
|
129 | 129 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
core/inc/aos_shell.h | ||
---|---|---|
29 | 29 |
|
30 | 30 |
#include <amiroos.h> |
31 | 31 |
|
32 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
32 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__)
|
|
33 | 33 |
|
34 | 34 |
/******************************************************************************/ |
35 | 35 |
/* CONSTANTS */ |
... | ... | |
418 | 418 |
/* INLINE FUNCTIONS */ |
419 | 419 |
/******************************************************************************/ |
420 | 420 |
|
421 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
421 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
422 | 422 |
|
423 | 423 |
#endif /* AMIROOS_SHELL_H */ |
424 | 424 |
|
core/inc/aos_system.h | ||
---|---|---|
183 | 183 |
event_source_t os; |
184 | 184 |
} events; |
185 | 185 |
|
186 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
186 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
187 | 187 |
|
188 | 188 |
/** |
189 | 189 |
* @brief Pointer to the shell object. |
190 | 190 |
*/ |
191 | 191 |
aos_shell_t shell; |
192 | 192 |
|
193 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
193 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
194 | 194 |
|
195 | 195 |
} aos_system_t; |
196 | 196 |
|
... | ... | |
217 | 217 |
#if defined(__cplusplus) |
218 | 218 |
extern "C" { |
219 | 219 |
#endif /* defined(__cplusplus) */ |
220 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) |
|
221 | 220 |
void aosSysInit(const char* shellPrompt); |
222 |
#else /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */ |
|
223 |
void aosSysInit(void); |
|
224 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */ |
|
225 | 221 |
void aosSysStart(void); |
226 | 222 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) || defined (__DOXYGEN__) |
227 | 223 |
eventmask_t aosSysSsspStartupOsInitSyncCheck(event_listener_t* syncEvtListener); |
core/inc/aos_thread.h | ||
---|---|---|
122 | 122 |
extern "C" { |
123 | 123 |
#endif /* defined(_cplusplus) */ |
124 | 124 |
void aosThdSleepUntilS(const aos_timestamp_t t); |
125 |
#if (AMIROOS_CFG_DBG == true) && (CH_DBG_FILL_THREADS == TRUE)
|
|
125 |
#if ((AMIROOS_CFG_DBG == true) && (CH_DBG_FILL_THREADS == TRUE)) || defined(__DOXYGEN__)
|
|
126 | 126 |
size_t aosThdGetStackPeakUtilization(thread_t* thread); |
127 | 127 |
#endif /* (AMIROOS_CFG_DBG == true) && (CH_DBG_FILL_THREADS == TRUE) */ |
128 | 128 |
#if defined(__cplusplus) |
core/src/aos_main.cpp | ||
---|---|---|
131 | 131 |
*/ |
132 | 132 |
static AosIOChannel _stdiochannel; |
133 | 133 |
|
134 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
|
134 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
135 |
|
|
135 | 136 |
/** |
136 | 137 |
* @brief I/O shell channel for the programmer interface. |
137 | 138 |
*/ |
138 | 139 |
static AosShellChannel _stdshellchannel; |
139 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)*/ |
|
140 |
|
|
141 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
140 | 142 |
#endif /* defined(MODULE_HAL_PROGIF) */ |
141 | 143 |
|
142 | 144 |
/* |
... | ... | |
953 | 955 |
#endif /* defined(AMIROOS_CFG_MAIN_INIT_HOOK_2) */ |
954 | 956 |
|
955 | 957 |
// AMiRo-OS, additional interrupts and custom OS additions (if any) |
956 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
958 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) |
|
957 | 959 |
aosSysInit(moduleShellPrompt); |
958 |
#else /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
959 |
aosSysInit(); |
|
960 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
960 |
#else /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
961 |
aosSysInit(NULL);
|
|
962 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
961 | 963 |
#if defined(MODULE_INIT_INTERRUPTS) |
962 | 964 |
MODULE_INIT_INTERRUPTS(); |
963 | 965 |
#endif |
... | ... | |
1012 | 1014 |
aosIOChannelInit(&_stdiochannel, (BaseAsynchronousChannel*)&MODULE_HAL_PROGIF); |
1013 | 1015 |
aosIOChannelOutputEnable(&_stdiochannel); |
1014 | 1016 |
aosIOStreamAddChannel(&aos.iostream, &_stdiochannel); |
1015 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
1017 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) |
|
1016 | 1018 |
aosShellChannelInit(&_stdshellchannel, (BaseAsynchronousChannel*)&MODULE_HAL_PROGIF); |
1017 | 1019 |
aosShellChannelInputEnable(&_stdshellchannel); |
1018 | 1020 |
aosShellChannelOutputEnable(&_stdshellchannel); |
1019 | 1021 |
aosShellStreamAddChannel(&aos.shell.stream, &_stdshellchannel); |
1020 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
1022 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
1021 | 1023 |
#endif /* defined(MODULE_HAL_PROGIF) */ |
1022 | 1024 |
|
1023 | 1025 |
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_5) |
core/src/aos_shell.c | ||
---|---|---|
28 | 28 |
#include <amiroos.h> |
29 | 29 |
#include <string.h> |
30 | 30 |
|
31 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
31 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__)
|
|
32 | 32 |
|
33 | 33 |
/******************************************************************************/ |
34 | 34 |
/* LOCAL DEFINITIONS */ |
... | ... | |
1720 | 1720 |
// no chSysUnlock() required since the thread has been terminated an all waiting threads have been woken up |
1721 | 1721 |
} |
1722 | 1722 |
|
1723 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)*/
|
|
1723 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
1724 | 1724 |
|
1725 | 1725 |
/** @} */ |
core/src/aos_system.c | ||
---|---|---|
84 | 84 |
/* |
85 | 85 |
* forward declarations |
86 | 86 |
*/ |
87 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
87 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
88 | 88 |
static int _shellcmd_configcb(BaseSequentialStream* stream, int argc, char* argv[]); |
89 | 89 |
static int _shellcmd_infocb(BaseSequentialStream* stream, int argc, char* argv[]); |
90 | 90 |
static int _shellcmd_shutdowncb(BaseSequentialStream* stream, int argc, char* argv[]); |
91 | 91 |
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
92 | 92 |
static int _shellcmd_kerneltestcb(BaseSequentialStream* stream, int argc, char* argv[]); |
93 | 93 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
94 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
94 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
95 | 95 |
|
96 | 96 |
/** |
97 | 97 |
* @brief Timer to accumulate system uptime. |
... | ... | |
128 | 128 |
|
129 | 129 |
#endif /* (AMIROOS_CFG_SSSP_ENABLE == true) && (AMIROOS_CFG_SSSP_MASTER != true) && (AMIROOS_CFG_PROFILE == true) */ |
130 | 130 |
|
131 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
131 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
132 | 132 |
/** |
133 | 133 |
* @brief Shell thread working area. |
134 | 134 |
*/ |
... | ... | |
157 | 157 |
/** |
158 | 158 |
* @brief Shell command to shutdown the system. |
159 | 159 |
*/ |
160 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
160 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) || defined(__DOXYGEN__)
|
|
161 | 161 |
static AOS_SHELL_COMMAND(_shellcmd_shutdown, "system:shutdown", _shellcmd_shutdowncb); |
162 | 162 |
#else /* (AMIROOS_CFG_SSSP_ENABLE == true) */ |
163 | 163 |
static AOS_SHELL_COMMAND(_shellcmd_shutdown, "module:shutdown", _shellcmd_shutdowncb); |
164 | 164 |
#endif /* (AMIROOS_CFG_SSSP_ENABLE == true) */ |
165 | 165 |
|
166 | 166 |
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
167 |
|
|
167 | 168 |
/** |
168 | 169 |
* @brief Shell kommand to run a test of the ChibiOS/RT kernel. |
169 | 170 |
*/ |
170 | 171 |
static AOS_SHELL_COMMAND(_shellcmd_kerneltest, "kernel:test", _shellcmd_kerneltestcb); |
172 |
|
|
171 | 173 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
172 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
174 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
173 | 175 |
|
174 | 176 |
/******************************************************************************/ |
175 | 177 |
/* LOCAL FUNCTIONS */ |
... | ... | |
331 | 333 |
return; |
332 | 334 |
} |
333 | 335 |
|
334 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
336 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
335 | 337 |
/** |
336 | 338 |
* @brief Callback function for the system:config shell command. |
337 | 339 |
* |
... | ... | |
647 | 649 |
|
648 | 650 |
return retval; |
649 | 651 |
} |
652 |
|
|
650 | 653 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
651 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
654 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
652 | 655 |
|
653 | 656 |
// suppress warning in case no interrupt GPIOs are defined |
654 | 657 |
#pragma GCC diagnostic push |
... | ... | |
782 | 785 |
* |
783 | 786 |
* @param[in] shellPrompt String to be printed as prompt of the system shell. |
784 | 787 |
*/ |
785 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
|
786 | 788 |
void aosSysInit(const char* shellPrompt) |
787 |
#else /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */ |
|
788 |
void aosSysInit(void) |
|
789 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */ |
|
790 | 789 |
{ |
791 | 790 |
/* set control thread to maximum priority */ |
792 | 791 |
chThdSetPriority(AOS_THD_CTRLPRIO); |
... | ... | |
845 | 844 |
#endif /* (AMIROOS_CFG_SSSP_STACK_END != true) */ |
846 | 845 |
#endif /* (AMIROOS_CFG_SSSP_ENABLE == true) */ |
847 | 846 |
|
848 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
847 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) |
|
849 | 848 |
/* init shell */ |
850 | 849 |
aosShellInit(&aos.shell, |
851 | 850 |
&aos.events.os, |
... | ... | |
861 | 860 |
#if (AMIROOS_CFG_TESTS_ENABLE == true) |
862 | 861 |
aosShellAddCommand(&aos.shell, &_shellcmd_kerneltest); |
863 | 862 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
864 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
863 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
865 | 864 |
|
866 | 865 |
return; |
867 | 866 |
} |
... | ... | |
893 | 892 |
_printSystemInfo((BaseSequentialStream*)&aos.iostream); |
894 | 893 |
aosprintf("\n"); |
895 | 894 |
|
896 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true)
|
|
895 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) |
|
897 | 896 |
// start system shell thread |
898 | 897 |
#if (CH_CFG_USE_THREADHIERARCHY == TRUE) |
899 | 898 |
aos.shell.thread = chThdCreateStatic(_shell_wa, sizeof(_shell_wa), AMIROOS_CFG_SHELL_THREADPRIO, aosShellThread, &aos.shell, &ch.mainthread); |
900 | 899 |
#else /* (CH_CFG_USE_THREADHIERARCHY == TRUE) */ |
901 | 900 |
aos.shell.thread = chThdCreateStatic(_shell_wa, sizeof(_shell_wa), AMIROOS_CFG_SHELL_THREADPRIO, aosShellThread, &aos.shell); |
902 | 901 |
#endif /* (CH_CFG_USE_THREADHIERARCHY == TRUE) */ |
903 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
902 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
904 | 903 |
|
905 | 904 |
return; |
906 | 905 |
} |
modules/DiWheelDrive_1-1/module.c | ||
---|---|---|
339 | 339 |
*/ |
340 | 340 |
/*===========================================================================*/ |
341 | 341 |
|
342 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
342 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
343 | 343 |
ROMCONST char* moduleShellPrompt = "DiWheelDrive"; |
344 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
344 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
345 | 345 |
|
346 | 346 |
/** @} */ |
347 | 347 |
|
modules/DiWheelDrive_1-1/module.h | ||
---|---|---|
289 | 289 |
*/ |
290 | 290 |
#define MODULE_OS_IOEVENTFLAGS_ACCELINT AOS_IOEVENT_FLAG(PAL_PAD(LINE_ACCEL_INT_N)) |
291 | 291 |
|
292 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
292 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
293 | 293 |
/** |
294 | 294 |
* @brief Shell prompt text. |
295 | 295 |
*/ |
296 | 296 |
extern ROMCONST char* moduleShellPrompt; |
297 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
297 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
298 | 298 |
|
299 | 299 |
/** |
300 | 300 |
* @brief Interrupt initialization macro. |
modules/DiWheelDrive_1-2/module.c | ||
---|---|---|
336 | 336 |
*/ |
337 | 337 |
/*===========================================================================*/ |
338 | 338 |
|
339 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
339 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
340 | 340 |
ROMCONST char* moduleShellPrompt = "DiWheelDrive"; |
341 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
341 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
342 | 342 |
|
343 | 343 |
/** @} */ |
344 | 344 |
|
modules/DiWheelDrive_1-2/module.h | ||
---|---|---|
269 | 269 |
*/ |
270 | 270 |
#define MODULE_OS_IOEVENTFLAGS_IMUINT AOS_IOEVENT_FLAG(PAL_PAD(LINE_IMU_INT)) |
271 | 271 |
|
272 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
272 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
273 | 273 |
/** |
274 | 274 |
* @brief Shell prompt text. |
275 | 275 |
*/ |
276 | 276 |
extern ROMCONST char* moduleShellPrompt; |
277 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
277 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
278 | 278 |
|
279 | 279 |
/** |
280 | 280 |
* @brief Interrupt initialization macro. |
modules/LightRing_1-0/module.c | ||
---|---|---|
231 | 231 |
*/ |
232 | 232 |
/*===========================================================================*/ |
233 | 233 |
|
234 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
234 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
235 | 235 |
ROMCONST char* moduleShellPrompt = "LightRing"; |
236 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
236 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
237 | 237 |
|
238 | 238 |
/** @} */ |
239 | 239 |
|
modules/LightRing_1-0/module.h | ||
---|---|---|
193 | 193 |
*/ |
194 | 194 |
#define MODULE_OS_IOEVENTFLAGS_SYSSYNC AOS_IOEVENT_FLAG(PAL_PAD(LINE_SYS_INT_N)) |
195 | 195 |
|
196 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
196 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
197 | 197 |
/** |
198 | 198 |
* @brief Shell prompt text. |
199 | 199 |
*/ |
200 | 200 |
extern ROMCONST char* moduleShellPrompt; |
201 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
201 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
202 | 202 |
|
203 | 203 |
/** |
204 | 204 |
* @brief Interrupt initialization macro. |
modules/LightRing_1-2/module.c | ||
---|---|---|
509 | 509 |
*/ |
510 | 510 |
/*===========================================================================*/ |
511 | 511 |
|
512 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
512 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
513 | 513 |
ROMCONST char* moduleShellPrompt = "LightRing"; |
514 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
514 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
515 | 515 |
|
516 | 516 |
/** @} */ |
517 | 517 |
|
modules/LightRing_1-2/module.h | ||
---|---|---|
307 | 307 |
|
308 | 308 |
#endif /* (BOARD_BREAKOUT_MODULE == BOARD_BREAKOUT_UWBv10) */ |
309 | 309 |
|
310 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
310 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
311 | 311 |
/** |
312 | 312 |
* @brief Shell prompt text. |
313 | 313 |
*/ |
314 | 314 |
extern ROMCONST char* moduleShellPrompt; |
315 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
315 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
316 | 316 |
|
317 | 317 |
/** |
318 | 318 |
* @brief Interrupt initialization macro. |
modules/NUCLEO-F103RB/module.c | ||
---|---|---|
167 | 167 |
*/ |
168 | 168 |
/*===========================================================================*/ |
169 | 169 |
|
170 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
170 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
171 | 171 |
ROMCONST char* moduleShellPrompt = "NUCLEO-F103RB"; |
172 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
172 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
173 | 173 |
|
174 | 174 |
/** @} */ |
175 | 175 |
|
modules/NUCLEO-F103RB/module.h | ||
---|---|---|
155 | 155 |
*/ |
156 | 156 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON)) |
157 | 157 |
|
158 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
158 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
159 | 159 |
/** |
160 | 160 |
* @brief Shell prompt text. |
161 | 161 |
*/ |
162 | 162 |
extern ROMCONST char* moduleShellPrompt; |
163 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
163 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
164 | 164 |
|
165 | 165 |
/** |
166 | 166 |
* @brief Interrupt initialization macro. |
modules/NUCLEO-F401RE/module.c | ||
---|---|---|
97 | 97 |
*/ |
98 | 98 |
/*===========================================================================*/ |
99 | 99 |
|
100 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
100 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
101 | 101 |
ROMCONST char* moduleShellPrompt = "NUCLEO-F401RE"; |
102 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
102 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
103 | 103 |
|
104 | 104 |
/** @} */ |
105 | 105 |
|
modules/NUCLEO-F401RE/module.h | ||
---|---|---|
93 | 93 |
*/ |
94 | 94 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON)) |
95 | 95 |
|
96 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
96 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
97 | 97 |
/** |
98 | 98 |
* @brief Shell prompt text. |
99 | 99 |
*/ |
100 | 100 |
extern ROMCONST char* moduleShellPrompt; |
101 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
101 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
102 | 102 |
|
103 | 103 |
/** |
104 | 104 |
* @brief Interrupt initialization macro. |
modules/NUCLEO-F767ZI/module.c | ||
---|---|---|
127 | 127 |
*/ |
128 | 128 |
/*===========================================================================*/ |
129 | 129 |
|
130 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
130 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
131 | 131 |
ROMCONST char* moduleShellPrompt = "NUCLEO-F767ZI"; |
132 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
132 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
133 | 133 |
|
134 | 134 |
/** @} */ |
135 | 135 |
|
modules/NUCLEO-F767ZI/module.h | ||
---|---|---|
103 | 103 |
*/ |
104 | 104 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON)) |
105 | 105 |
|
106 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
106 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
107 | 107 |
/** |
108 | 108 |
* @brief Shell prompt text. |
109 | 109 |
*/ |
110 | 110 |
extern ROMCONST char* moduleShellPrompt; |
111 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
111 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
112 | 112 |
|
113 | 113 |
/** |
114 | 114 |
* @brief Interrupt initialization macro. |
modules/NUCLEO-L476RG/module.c | ||
---|---|---|
107 | 107 |
*/ |
108 | 108 |
/*===========================================================================*/ |
109 | 109 |
|
110 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
110 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
111 | 111 |
ROMCONST char* moduleShellPrompt = "NUCLEO-L476RG"; |
112 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
112 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
113 | 113 |
|
114 | 114 |
/** @} */ |
115 | 115 |
|
modules/NUCLEO-L476RG/module.h | ||
---|---|---|
107 | 107 |
*/ |
108 | 108 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON)) |
109 | 109 |
|
110 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
110 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
111 | 111 |
/** |
112 | 112 |
* @brief Shell prompt text. |
113 | 113 |
*/ |
114 | 114 |
extern ROMCONST char* moduleShellPrompt; |
115 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
115 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
116 | 116 |
|
117 | 117 |
/** |
118 | 118 |
* @brief Interrupt initialization macro. |
modules/PowerManagement_1-1/module.c | ||
---|---|---|
522 | 522 |
*/ |
523 | 523 |
/*===========================================================================*/ |
524 | 524 |
|
525 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
525 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
526 | 526 |
ROMCONST char* moduleShellPrompt = "PowerManagement"; |
527 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
527 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
528 | 528 |
|
529 | 529 |
/** @} */ |
530 | 530 |
|
modules/PowerManagement_1-1/module.h | ||
---|---|---|
384 | 384 |
*/ |
385 | 385 |
#define MODULE_OS_IOEVENTFLAGS_SYSUARTUP AOS_IOEVENT_FLAG(PAL_PAD(LINE_SYS_UART_UP)) |
386 | 386 |
|
387 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
387 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
388 | 388 |
/** |
389 | 389 |
* @brief Shell prompt text. |
390 | 390 |
*/ |
391 | 391 |
extern ROMCONST char* moduleShellPrompt; |
392 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
392 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
393 | 393 |
|
394 | 394 |
/** |
395 | 395 |
* @brief Interrupt initialization macro. |
modules/PowerManagement_1-2/module.c | ||
---|---|---|
537 | 537 |
*/ |
538 | 538 |
/*===========================================================================*/ |
539 | 539 |
|
540 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
540 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
541 | 541 |
ROMCONST char* moduleShellPrompt = "PowerManagement"; |
542 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
542 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
543 | 543 |
|
544 | 544 |
/** @} */ |
545 | 545 |
|
modules/PowerManagement_1-2/module.h | ||
---|---|---|
389 | 389 |
*/ |
390 | 390 |
#define MODULE_OS_IOEVENTFLAGS_SYSUARTUP AOS_IOEVENT_FLAG(PAL_PAD(LINE_SYS_UART_UP)) |
391 | 391 |
|
392 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
392 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
393 | 393 |
/** |
394 | 394 |
* @brief Shell prompt text. |
395 | 395 |
*/ |
396 | 396 |
extern ROMCONST char* moduleShellPrompt; |
397 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
397 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
398 | 398 |
|
399 | 399 |
/** |
400 | 400 |
* @brief Interrupt initialization macro. |
modules/STM32F407G-DISC1/module.c | ||
---|---|---|
142 | 142 |
*/ |
143 | 143 |
/*===========================================================================*/ |
144 | 144 |
|
145 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
145 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
146 | 146 |
ROMCONST char* moduleShellPrompt = "STM32F407Discovery"; |
147 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
147 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
148 | 148 |
|
149 | 149 |
/** @} */ |
150 | 150 |
|
modules/STM32F407G-DISC1/module.h | ||
---|---|---|
135 | 135 |
*/ |
136 | 136 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON)) |
137 | 137 |
|
138 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
|
|
138 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
139 | 139 |
/** |
140 | 140 |
* @brief Shell prompt text. |
141 | 141 |
*/ |
142 | 142 |
extern ROMCONST char* moduleShellPrompt; |
143 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) */
|
|
143 |
#endif /* (AMIROOS_CFG_SHELL_ENABLE == true) */ |
|
144 | 144 |
|
145 | 145 |
/** |
146 | 146 |
* @brief Interrupt initialization macro. |
Also available in: Unified diff