45 : timerInstance_(timer_instance), intervalMicros_(1000000),
46 running_(false), triggered_(false) {
49 sbl::core::hal::HardwareTimer<TimerImpl>::initialize(timerInstance_);
85 using HwTimer = sbl::core::hal::HardwareTimer<TimerImpl>;
86 using TimerRegistry = sbl::core::hal::TimerInterruptRegistry<>;
89 HwTimer::configure(timerInstance_, intervalMicros_,
90 sbl::core::hal::TimerMode::Periodic);
93 registerInstance(timerInstance_,
this);
94 TimerRegistry::registerHandler(timerInstance_,
95 sbl::core::hal::TimerInterrupt::Update,
96 &IntervalTimer::staticInterruptHandler);
99 HwTimer::enableInterrupt(timerInstance_,
100 sbl::core::hal::TimerInterrupt::Update,
101 sbl::core::hal::InterruptPriority::High);
103 HwTimer::reset(timerInstance_);
104 HwTimer::start(timerInstance_);
116 using HwTimer = sbl::core::hal::HardwareTimer<TimerImpl>;
117 using TimerRegistry = sbl::core::hal::TimerInterruptRegistry<>;
119 HwTimer::stop(timerInstance_);
120 HwTimer::disableInterrupt(timerInstance_,
121 sbl::core::hal::TimerInterrupt::Update);
124 TimerRegistry::unregisterHandler(timerInstance_,
125 sbl::core::hal::TimerInterrupt::Update);
126 unregisterInstance(timerInstance_);