#define TRACE_MODE_FIRST 0
#define TRACE_MODE_OFF 0
#define TRACE_MODE_CIRCULAR 1
#define TRACE_MODE_ONESHOT 2
#define TRACE_MODE_LAST 2
#define TRACE_MODE_DEFAULT TRACE_MODE_CIRCULAR
#define TRACE_SIZE_DEFAULT 500
#define TRACE_TAG_FIRST 0
#define TRACE_TAG_CRITICAL_FIRST 0
#define TRACE_TAG_CRITICAL_ENTER 0
#define TRACE_TAG_CRITICAL_EXIT 1
#define TRACE_TAG_CRITICAL_LAST 1
#define TRACE_TAG_THREAD_FIRST 2
#define TRACE_TAG_THREAD_YIELD 2
#define TRACE_TAG_THREAD_SETPRIO 3
#define TRACE_TAG_THREAD_WAIT 4
#define TRACE_TAG_THREAD_SLEEP 5
#define TRACE_TAG_THREAD_LAST 5
#define TRACE_TAG_INTERRUPT_FIRST 6
#define TRACE_TAG_INTERRUPT_ENTER 6
#define TRACE_TAG_INTERRUPT_EXIT 7
#define TRACE_TAG_INTERRUPT_LAST 7
#define TRACE_TAG_START 8
#define TRACE_TAG_STOP 9
#define TRACE_TAG_USER 10
#define TRACE_TAG_LAST 10
#define TRACE_MAX_USER 10
#define TRACE_INT_FIRST 0
#define TRACE_INT_UART0_CTS 0
#define TRACE_INT_UART0_RXCOMPL 1
#define TRACE_INT_UART0_TXEMPTY 2
#define TRACE_INT_UART1_CTS 3
#define TRACE_INT_UART1_RXCOMPL 4
#define TRACE_INT_UART1_TXEMPTY 5
#define TRACE_INT_TIMER0_OVERFL 6
#define TRACE_INT_TIMER1_OVERFL 7
#define TRACE_INT_SUART_TIMER 8
#define TRACE_INT_SUART_RX 9
#define TRACE_INT_LAST 9
* Macro to insert an event in the trace buffer * * @param TAG Type of event * @param PC Additional information, depending on the type of event
#define TRACE_ADD_ITEM( TAG, PC )
* Macro to insert an event in the trace buffer, * filling the additional information field with the program counter (PC) * * @param TAG Type of event
#define TRACE_ADD_ITEM_PC( TAG )
struct _t_traceitem | |
{ | |
uint8_t tag; | |
unsigned int pc; | |
unsigned int time_h; | |
unsigned int time_l; | |
} |
Defined in: | nut/os/tracer.c |
trace_items
extern t_traceitem* trace_items
Defined in: | nut/os/tracer.c |
trace_current
extern t_traceitem* trace_current
Defined in: | nut/os/tracer.c |
trace_head
extern int trace_head
Defined in: | nut/os/tracer.c |
trace_size
extern int trace_size
Defined in: | nut/os/tracer.c |
trace_isfull
extern char trace_isfull
Defined in: | nut/os/tracer.c |
trace_mode
extern char trace_mode
Defined in: | nut/os/tracer.c |
trace_mask
extern char trace_mask[10+1]
Defined in: | nut/os/tracer.c |