git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@854 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e4534bc973
commit
d86b7080f5
|
@ -45,7 +45,7 @@ void trace_init(void) {
|
||||||
* @brief Inserts in the circular debug trace buffer a context switch record.
|
* @brief Inserts in the circular debug trace buffer a context switch record.
|
||||||
*
|
*
|
||||||
* @param[in] otp the thread being switched out
|
* @param[in] otp the thread being switched out
|
||||||
* @param[in] ntp the thread to be resumed
|
* @param[in] ntp the thread to be switched in
|
||||||
*/
|
*/
|
||||||
void chDbgTrace(Thread *otp, Thread *ntp) {
|
void chDbgTrace(Thread *otp, Thread *ntp) {
|
||||||
|
|
||||||
|
|
|
@ -126,22 +126,23 @@ typedef struct {
|
||||||
#define chDbgTrace(otp, ntp) {}
|
#define chDbgTrace(otp, ntp) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(__DOXYGEN__)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#if !defined(__DOXYGEN__) && CH_DBG_ENABLE_TRACE
|
#if CH_DBG_ENABLE_TRACE
|
||||||
extern TraceBuffer trace_buffer;
|
extern TraceBuffer trace_buffer;
|
||||||
void trace_init(void);
|
void trace_init(void);
|
||||||
void chDbgTrace(Thread *otp, Thread *ntp);
|
void chDbgTrace(Thread *otp, Thread *ntp);
|
||||||
#endif
|
#endif
|
||||||
#if !defined(__DOXYGEN__) && \
|
#if CH_DBG_ENABLE_ASSERTS || CH_DBG_ENABLE_CHECKS || CH_DBG_ENABLE_STACK_CHECK
|
||||||
(CH_DBG_ENABLE_ASSERTS || CH_DBG_ENABLE_CHECKS || CH_DBG_ENABLE_STACK_CHECK)
|
|
||||||
extern char *panic_msg;
|
extern char *panic_msg;
|
||||||
void chDbgPanic(char *msg);
|
void chDbgPanic(char *msg);
|
||||||
#endif
|
#endif
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* !defined(__DOXYGEN__) */
|
||||||
|
|
||||||
#endif /* _DEBUG_H_ */
|
#endif /* _DEBUG_H_ */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue