From 27e1254afc618ef34cf7d49c5158587da465b2be Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 2 Feb 2009 09:49:05 +0100 Subject: digital/avr/modules/trace: Ended the trace module to stop the traces when it rolls over the flash memory. (Closes #t60). --- digital/avr/modules/trace/trace.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'digital/avr/modules/trace/trace.h') diff --git a/digital/avr/modules/trace/trace.h b/digital/avr/modules/trace/trace.h index 937e49a9..72c7c9ef 100644 --- a/digital/avr/modules/trace/trace.h +++ b/digital/avr/modules/trace/trace.h @@ -84,7 +84,11 @@ else if (sizeof(arg) == sizeof(uint32_t)) trace_print_arg_4(arg);\ }while (0) -/* Forward declaration. */ +enum trace_status_t +{ + TRACE_STATUS_OFF, + TRACE_STATUS_ON +}; typedef enum trace_status_t trace_status_t; /** Print an argument of one byte. @@ -106,10 +110,11 @@ void trace_print_arg_4(uint32_t arg); /** Initialise the trace module. + * \return the status of the trace module. * Find the first sector writable and store the following start code * 0xF33FF22F this indicate the beginning of traces. */ -void +uint8_t trace_init (void); /** Print the trace. -- cgit v1.2.3