Revision 1678f270 core/inc/aos_thread.h
core/inc/aos_thread.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 |
... | ... | |
99 | 99 |
extern "C" { |
100 | 100 |
#endif |
101 | 101 |
void aosThdSleepUntilS(const aos_timestamp_t* t); |
102 |
#if (CH_DBG_FILL_THREADS == TRUE) |
|
102 |
#if (AMIROOS_CFG_DBG == true) && (CH_DBG_FILL_THREADS == TRUE)
|
|
103 | 103 |
size_t aosThdGetStackPeakUtilization(thread_t* thread); |
104 | 104 |
#endif |
105 | 105 |
#ifdef __cplusplus |
... | ... | |
240 | 240 |
return; |
241 | 241 |
} |
242 | 242 |
|
243 |
#if (AMIROOS_CFG_DBG == true) || defined(__DOXYGEN__) |
|
244 |
|
|
243 | 245 |
/** |
244 | 246 |
* @brief Retrieve the stack size of a specific thread in bytes. |
245 | 247 |
* |
... | ... | |
263 | 265 |
((size_t)PORT_GUARD_PAGE_SIZE + sizeof(struct port_intctx) + sizeof(struct port_extctx) + (size_t)PORT_INT_REQUIRED_STACK); |
264 | 266 |
} |
265 | 267 |
|
268 |
#endif /* AMIROOS_CFG_DBG == true */ |
|
269 |
|
|
266 | 270 |
#endif /* _AMIROOS_THREAD_H_ */ |
267 | 271 |
|
268 | 272 |
/** @} */ |
Also available in: Unified diff