20 #define DEBUG16_VALUE_COUNT 4
23 #define DEBUG_SECTION_TIMES
25 #ifdef DEBUG_SECTION_TIMES
28 #define TIME_SECTION_BEGIN(index) { \
29 extern uint32_t sectionTimes[2][4]; \
30 sectionTimes[0][index] = micros(); \
33 #define TIME_SECTION_END(index) { \
34 extern uint32_t sectionTimes[2][4]; \
35 sectionTimes[1][index] = micros(); \
36 debug[index] = sectionTimes[1][index] - sectionTimes[0][index]; \
40 #define TIME_SECTION_BEGIN(index) {}
41 #define TIME_SECTION_END(index) {}
uint32_t sectionTimes[2][4]
Definition: debug.c:26
#define DEBUG16_VALUE_COUNT
Definition: debug.h:20
int16_t debug[DEBUG16_VALUE_COUNT]
Definition: debug.c:23