summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/trace/trace.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-02-02 09:49:05 +0100
committerNélio Laranjeiro2009-02-02 09:49:05 +0100
commit27e1254afc618ef34cf7d49c5158587da465b2be (patch)
treea42908d78a8eeef2f63d93208372214cf7c0664a /digital/avr/modules/trace/trace.h
parent76e17b119a52c0ec0a4ea36a8276cc552efee2d2 (diff)
digital/avr/modules/trace: Ended the trace module to stop the traces when it
rolls over the flash memory. (Closes #t60).
Diffstat (limited to 'digital/avr/modules/trace/trace.h')
-rw-r--r--digital/avr/modules/trace/trace.h9
1 files changed, 7 insertions, 2 deletions
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.