[Horus] Simulator graphics

This commit is contained in:
Bertrand Songis
2015-11-11 10:02:12 +01:00
parent 312c370162
commit c4d7feaa9b
7 changed files with 164 additions and 79 deletions
+5
View File
@@ -78,8 +78,13 @@ void debugPrintf(const char * format, ...);
#define TRACE_WARNING_WP(...) debugPrintf(__VA_ARGS__)
#define TRACE_ERROR(...) debugPrintf("-E- " __VA_ARGS__)
#if defined(DEBUG) && !defined(SIMU)
#define TIME_MEASURE_START(id) uint16_t t0 ## id = getTmr2MHz()
#define TIME_MEASURE_STOP(id) TRACE("Measure(" # id ") = %.1fus", float((uint16_t)(getTmr2MHz() - t0 ## id))/2)
#else
#define TIME_MEASURE_START(id)
#define TIME_MEASURE_STOP(id)
#endif
#if defined(DEBUG_TRACE_BUFFER)