Skip to content

Commit

Permalink
turning off obsolete counter system
Browse files Browse the repository at this point in the history
  • Loading branch information
divanchykhin committed Jun 11, 2015
1 parent 1832985 commit 42b4718
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions firmware/src/common/sa-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 42b4718

Please sign in to comment.