Revision 5c9e9b9d core/inc/aos_thread.h
core/inc/aos_thread.h | ||
---|---|---|
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