[simu] Traces allowed in SIMU mode

[stock] Flash saving (around 50bytes)
[gruvin9x / sky9x / taranis] No "Restore Model" on non empty slots
[taranis] Failsafe sent in PXX protocol
This commit is contained in:
bsongis@gmail.com
2013-03-26 19:39:52 +00:00
parent 2df2c5a011
commit 34b56368dd
8 changed files with 77 additions and 32 deletions
+3 -1
View File
@@ -41,6 +41,8 @@
#if defined(SIMU)
#include <stdio.h>
#define TRACE_DEBUG(...) { printf("-D- " __VA_ARGS__); fflush(stdout); }
#define TRACE_DEBUG_WP(...) { printf(__VA_ARGS__); fflush(stdout); }
#define TRACE_INFO(...) { printf("-I- " __VA_ARGS__); fflush(stdout); }
@@ -64,7 +66,7 @@
}
#define DUMP(data, size) dump(data, size)
#elif defined(DEBUG)
#elif defined(DEBUG) && defined(CPUARM)
#ifdef __cplusplus
extern "C" {