Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2189 | - | 1 | #ifndef _PROFILER_H |
2 | #define _PROFILER_H |
||
3 | |||
4 | #include <inttypes.h> |
||
5 | #include <avr/pgmspace.h> |
||
6 | |||
7 | #define UNACCOUNTED 0 |
||
8 | |||
9 | #define ANALOG_UPDATE 1 |
||
10 | #define MATRIX_UPDATE1 2 |
||
11 | #define MATRIX_UPDATE2 3 |
||
12 | #define MATRIX_NORMALIZE1 4 |
||
13 | #define MATRIX_NORMALIZE2 5 |
||
14 | #define DRIFT_CORRECTION 6 |
||
15 | #define CHECK_MATRIX 7 |
||
16 | #define EULER_ANGLES 8 |
||
17 | #define ANGLESOUTPUT 9 |
||
18 | |||
19 | #define CONTROLMIXER 10 |
||
20 | #define COMMANDS 11 |
||
21 | #define FLIGHTCONTROL 12 |
||
22 | #define UART 13 |
||
23 | #define OUTPUTS 14 |
||
24 | |||
25 | //extern uint8_t currentProfiledActivity; |
||
26 | extern volatile uint16_t activitiesTimerHits[16]; |
||
27 | extern volatile uint32_t totalProfilerHits; |
||
28 | void setCurrentProfiledActivity(uint8_t what); |
||
29 | void reset(void); |
||
30 | void profiler_scoreTimerHit(void); |
||
31 | |||
32 | extern PGM_P PROFILER_LABELS[] PROGMEM; |
||
33 | |||
34 | #endif |
||
35 |