WRAP_AROUND_INITIAL_UPPER
This commit is contained in:
rusefillc 2024-05-11 13:23:47 -04:00
parent 1b606adeeb
commit 66d25c6627
1 changed files with 5 additions and 1 deletions

View File

@ -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;
};