Revision cda14729 core/src/aos_shell.c
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 */ |
... | ... | |
1637 | 1637 |
{ |
1638 | 1638 |
eventflags = chEvtGetAndClearFlags(&((aos_shell_t*)shell)->os.eventListener); |
1639 | 1639 |
// handle shutdown/restart events |
1640 |
if (eventflags & AOS_SYSTEM_EVENTFLAGS_SHUTDOWN) { |
|
1640 |
if (eventflags & AOS_SYSTEM_EVENTFLAGS_SHUTDOWN_MASK) {
|
|
1641 | 1641 |
chThdTerminate(((aos_shell_t*)shell)->thread); |
1642 | 1642 |
} else { |
1643 | 1643 |
// print an error message |
... | ... | |
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 |
/** @} */ |
Also available in: Unified diff