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

Data Structures

class  MainLoop
 

Functions

template<LoopPeriod flag>
static constexpr int loopCounts ()
 

Variables

static MainLoop mainLoop CCM_OPTIONAL
 

Function Documentation

◆ loopCounts()

template<LoopPeriod flag>
static constexpr int loopCounts ( )
staticconstexpr

Definition at line 12 of file main_loop_controller.h.

12 {
13 constexpr auto hz = hzForPeriod(flag);
14
15 // check that this cleanly divides
16 static_assert(MAIN_LOOP_RATE % hz == 0);
17
18 return MAIN_LOOP_RATE / hz;
19}
constexpr int hzForPeriod(LoopPeriod p)
Definition main_loop.h:25
Here is the call graph for this function:

Variable Documentation

◆ CCM_OPTIONAL

MainLoop mainLoop CCM_OPTIONAL
static

Definition at line 38 of file main_loop_controller.h.

Go to the source code of this file.