4 #include "../../src/include/targets.h"
9 uint32_t intEventTime
= 0;
10 uint32_t extEventTime
= 0;
16 inline void extEvent(uint32_t time
) // reference (external osc)
22 inline void intEvent(uint32_t time
) // internal osc event
34 inline void calcResult()
36 result
= (gotExtEvent
&& gotIntEvent
) ? (int32_t)(extEventTime
- intEventTime
) : 0;
39 inline int32_t getResult()
44 volatile uint32_t getIntEventTime() const { return intEventTime
; }
45 volatile uint32_t getExtEventTime() const { return extEventTime
; }