WRAP_AROUND_INITIAL_UPPER
This commit is contained in:
parent
1b606adeeb
commit
66d25c6627
|
@ -2,6 +2,10 @@
|
|||
|
||||
#include <rusefi/rusefi_time_types.h>
|
||||
|
||||
#ifndef WRAP_AROUND_INITIAL_UPPER
|
||||
#define WRAP_AROUND_INITIAL_UPPER 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Provide a 62-bit counter from a 32-bit counter source that wraps around.
|
||||
*
|
||||
|
@ -29,5 +33,5 @@ struct WrapAround62 {
|
|||
}
|
||||
|
||||
private:
|
||||
volatile uint32_t m_upper = 0;
|
||||
volatile uint32_t m_upper = WRAP_AROUND_INITIAL_UPPER;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue