MCPcopy Create free account
hub / github.com/SmingHub/Sming / timer1Callback

Method timer1Callback

tests/HostTests/modules/Timers.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 static void IRAM_ATTR timer1Callback(void* arg)
29 {
30 System.queueCallback(
31 [](void* param) {
32 auto self = static_cast<CallbackTimerTest*>(param);
33 ++self->timer1.count;
34 Serial << self->timer1.count << _F(" timer1 expired") << endl;
35 if(self->timer1.count == 5) {
36 self->timer1.stop();
37 self->timer1complete();
38 }
39 },
40 arg);
41 }
42
43 void execute() override
44 {

Callers

nothing calls this directly

Calls 3

timer1completeMethod · 0.95
queueCallbackMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected