summaryrefslogtreecommitdiff
path: root/digital/avr/modules/trace
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-07-13 15:54:03 +0200
committerNélio Laranjeiro2009-07-13 15:54:03 +0200
commit41813460998b22f7ea3ac35ae6f8f9cda3886ac9 (patch)
treea8f4ace3b99cad1cab1f8ba121515c9a6327f431 /digital/avr/modules/trace
parentccbfefb674166ac5cd95d737a019c88d5a20d3a8 (diff)
*tools/trace, digital/avr/modules/flash, digital/avr/modules/trace:
* Added the flash host file support for simulator tests. * Removed in the python tool the memory space in double when receiving from the proto object.
Diffstat (limited to 'digital/avr/modules/trace')
-rw-r--r--digital/avr/modules/trace/test/test-trace.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/digital/avr/modules/trace/test/test-trace.c b/digital/avr/modules/trace/test/test-trace.c
index 7938103b..a4d1b0d4 100644
--- a/digital/avr/modules/trace/test/test-trace.c
+++ b/digital/avr/modules/trace/test/test-trace.c
@@ -42,6 +42,7 @@ flood (void)
uint32_t addr;
uint32_t count;
+ uint16_t id;
uint32_t speed;
uint32_t position;
uint16_t acc;
@@ -67,9 +68,12 @@ flood (void)
arg1 = 1;
arg2 = 2;
arg3 = 3;
- TRACE (TRACE_ASSERV__RIGHT_MOTOR, speed, position, acc);
- TRACE (TRACE_ASSERV__LEFT_MOTOR, speed, position, acc);
- TRACE (TRACE_IA__IA_CMD, arg1, arg2, arg3);
+ id = TRACE_ASSERV__RIGHT_MOTOR;
+ TRACE (id, speed, position, acc);
+ id = TRACE_ASSERV__LEFT_MOTOR;
+ TRACE (id, speed, position, acc);
+ id = TRACE_IA__IA_CMD;
+ TRACE (id, arg1, arg2, arg3);
}
/* Print the end of the address. */