mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
More fixes to time types
This commit is contained in:
parent
e7dd693dd5
commit
adaef0da5a
28 changed files with 99 additions and 95 deletions
|
@ -24,15 +24,16 @@ extern uint8_t debugMode;
|
|||
#define DEBUG_SECTION_TIMES
|
||||
|
||||
#ifdef DEBUG_SECTION_TIMES
|
||||
extern uint32_t sectionTimes[2][4];
|
||||
#include "common/time.h"
|
||||
extern timeUs_t sectionTimes[2][4];
|
||||
|
||||
#define TIME_SECTION_BEGIN(index) { \
|
||||
extern uint32_t sectionTimes[2][4]; \
|
||||
extern timeUs_t sectionTimes[2][4]; \
|
||||
sectionTimes[0][index] = micros(); \
|
||||
}
|
||||
|
||||
#define TIME_SECTION_END(index) { \
|
||||
extern uint32_t sectionTimes[2][4]; \
|
||||
extern timeUs_t sectionTimes[2][4]; \
|
||||
sectionTimes[1][index] = micros(); \
|
||||
debug[index] = sectionTimes[1][index] - sectionTimes[0][index]; \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue