rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
periodic_task.h File Reference

Data Structures

class  PeriodicTimerController
 

Functions

void runAndScheduleNext (virtual_timer_t *vtp, PeriodicTimerController *controller)
 

Function Documentation

◆ runAndScheduleNext()

void runAndScheduleNext ( virtual_timer_t *  vtp,
PeriodicTimerController controller 
)

Definition at line 13 of file periodic_task.cpp.

13 {
14 {
16 controller->PeriodicTask();
17 }
18
19 chVTSetAny(vtp, TIME_MS2I(controller->getPeriodMs()), (vtfunc_t) &runAndScheduleNext, controller);
20}
virtual int getPeriodMs()=0
virtual void PeriodicTask()=0
void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par)
Definition os_util.cpp:27
@ PeriodicTimerControllerPeriodicTask
void runAndScheduleNext(virtual_timer_t *vtp, PeriodicTimerController *controller)

Referenced by runAndScheduleNext(), and PeriodicTimerController::start().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.