This commit is contained in:
hathach committed 2018-11-30 11:59:22 +07:00
1 parent 35e15993d0
commit 5ab56c1e31
1 file changed
+5
+5
View File
@@ -52,6 +52,11 @@ class SoftwareTimer
_handle = xTimerCreate(NULL, ms2tick(ms), true, NULL, callback);
}
TimerHandle_t getHandle(void)
{
return _handle;
}
void start(void) { xTimerStart(_handle, 0); }
void stop (void) { xTimerStop (_handle, 0); }