From f5f92965f6e0df104686875b82d329a65efedd2a Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Tue, 18 Nov 2008 22:54:26 +0100 Subject: avr/module/trace: Remove the uninit and the end code. The sector currently in use by the flash was erased, so the end of the sector contains only values equals to 0xFF. --- digital/avr/modules/trace/trace.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'digital/avr/modules/trace/trace.c') diff --git a/digital/avr/modules/trace/trace.c b/digital/avr/modules/trace/trace.c index 1f761796..ee092bad 100644 --- a/digital/avr/modules/trace/trace.c +++ b/digital/avr/modules/trace/trace.c @@ -28,7 +28,6 @@ #include "trace.h" #define TRACE_CODE_START 0xF33FF22F -#define TRACE_CODE_END 0xF44FF55F #define TRACE_ARGS_MAX 6 #define TRACE_MAX_ARGS (TRACE_ARGS_MAX * TRACE_ARGS_MAX) @@ -116,24 +115,6 @@ trace_init (void) } } -void -trace_uninit (void) -{ - uint8_t i; - if (trace_global.flash_status) - { - /* Store the end code of traces. */ - for (i = 0; i < 4; i ++) - { - flash_write (trace_global.flash_addr, - v32_to_v8 (TRACE_CODE_END, i)); - trace_global.flash_addr = - FLASH_ADDRESS_INC(trace_global.flash_addr); - } - } -} - - void trace_print (uint8_t arg) { -- cgit v1.2.3