From 42b471843ea5f9009862b2e573fbd7c832c9417f Mon Sep 17 00:00:00 2001 From: divanchykhin Date: Thu, 11 Jun 2015 12:26:33 +0300 Subject: [PATCH] turning off obsolete counter system --- firmware/src/common/sa-common.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/src/common/sa-common.h b/firmware/src/common/sa-common.h index 301c3e3..533d51f 100644 --- a/firmware/src/common/sa-common.h +++ b/firmware/src/common/sa-common.h @@ -145,9 +145,8 @@ INLINE void zepto_memcpy( void* dest, const void* src, uint16_t cnt ) #endif // counter system -#define ENABLE_COUNTER_SYSTEM +//#define ENABLE_COUNTER_SYSTEM -#define ENABLE_COUNTER_SYSTEM #ifdef ENABLE_COUNTER_SYSTEM #define MAX_COUNTERS_CNT 100 extern size_t COUNTERS[MAX_COUNTERS_CNT]; @@ -177,6 +176,11 @@ void printCounters(); #endif // TEST_CTR_SYSTEM #else +#define INIT_COUNTER_SYSTEM +#define PRINT_COUNTERS() +#define INCREMENT_COUNTER( i, name ) +#define INCREMENT_COUNTER_IF( i, name, cond ) +#define UPDATE_MAX_COUNTER( i, name, val ) #define PRINT_COUNTERS() #endif // ENABLE_COUNTER_SYSTEM