NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG16_VALUE_COUNT   4
 
#define DEBUG_SECTION_TIMES
 
#define TIME_SECTION_BEGIN(index)
 
#define TIME_SECTION_END(index)
 

Variables

int16_t debug [DEBUG16_VALUE_COUNT]
 
uint32_t sectionTimes [2][4]
 

Macro Definition Documentation

#define DEBUG16_VALUE_COUNT   4
#define DEBUG_SECTION_TIMES
#define TIME_SECTION_BEGIN (   index)
Value:
{ \
extern uint32_t sectionTimes[2][4]; \
sectionTimes[0][index] = micros(); \
}
uint32_t sectionTimes[2][4]
Definition: debug.c:26
uint32_t micros(void)
Definition: system.c:127
#define TIME_SECTION_END (   index)
Value:
{ \
extern uint32_t sectionTimes[2][4]; \
sectionTimes[1][index] = micros(); \
debug[index] = sectionTimes[1][index] - sectionTimes[0][index]; \
}
uint32_t sectionTimes[2][4]
Definition: debug.c:26
uint32_t micros(void)
Definition: system.c:127
int16_t debug[DEBUG16_VALUE_COUNT]
Definition: debug.c:23

Variable Documentation

int16_t debug[DEBUG16_VALUE_COUNT]
uint32_t sectionTimes[2][4]