chore: Add course material

This commit is contained in:
2026-10-05 11:27:21 +02:00
parent 971813c351
commit e8241fd1ff
660 changed files with 26658 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
// ======================================================
//
// Template for derievd Timers
//
// ======================================================
#ifndef TIMERT_H
#define TIMERT_H
#include "Timer.h"
template <class Target> class TimerT : public Timer {
public:
typedef void (Target::*TargetFunc)();
TimerT(Target &target, TargetFunc targetFunc) : myTarget(target), myTargetFunc(targetFunc) {}
private:
void doExpired() { (myTarget.*myTargetFunc)(); }
Target &myTarget;
TargetFunc myTargetFunc;
};
#endif