feat: better microsecond timer (#4112)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "haptic.h"
|
||||
|
||||
hapticQueue::hapticQueue()
|
||||
{
|
||||
@@ -107,3 +108,11 @@ void hapticQueue::event(uint8_t e)
|
||||
}
|
||||
|
||||
hapticQueue haptic;
|
||||
|
||||
// from timers_driver.cpp
|
||||
void per5ms()
|
||||
{
|
||||
DEBUG_TIMER_START(debugTimerHaptic);
|
||||
HAPTIC_HEARTBEAT();
|
||||
DEBUG_TIMER_STOP(debugTimerHaptic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user