| 41 | } |
| 42 | |
| 43 | void execute() override |
| 44 | { |
| 45 | MallocCount::setLogThreshold(0); |
| 46 | // MallocCount::enableLogging(true); |
| 47 | |
| 48 | checkCallbackTimer<HardwareTimerTest>(); |
| 49 | checkCallbackTimer<SimpleTimer>(); |
| 50 | checkCallbackTimer<Timer>(); |
| 51 | |
| 52 | #define SHOW_SIZE(Type) Serial << _F("sizeof(" #Type ") = ") << sizeof(Type) << endl |
| 53 | |
| 54 | SHOW_SIZE(os_timer_t); |
| 55 | SHOW_SIZE(OsTimerApi); |
| 56 | SHOW_SIZE(SimpleTimer); |
| 57 | SHOW_SIZE(OsTimer64Api<Timer>); |
| 58 | SHOW_SIZE(Timer); |
| 59 | SHOW_SIZE(AutoDeleteTimer); |
| 60 | SHOW_SIZE(Timer1TestApi); |
| 61 | SHOW_SIZE(HardwareTimerTest); |
| 62 | |
| 63 | timer1.initializeMs<500>(timer1Callback, this); |
| 64 | timer1.start(); |
| 65 | |
| 66 | Serial << _F("Waiting for timer1 callback test to complete") << endl; |
| 67 | pending(); |
| 68 | } |
| 69 | |
| 70 | void timer1complete() |
| 71 | { |
nothing calls this directly
no test coverage detected