feat: better microsecond timer (#4112)

This commit is contained in:
Raphael Coeffic
2023-09-26 18:30:55 +02:00
committed by GitHub
parent 6f40ea44ad
commit 6abd4263a4
22 changed files with 135 additions and 195 deletions
+9
View File
@@ -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);
}