mirror of https://github.com/FOME-Tech/fome-fw.git
get rid of efitimems_t
This commit is contained in:
parent
1fc7fd46a7
commit
5b51317585
|
@ -69,14 +69,6 @@ using efitimeus_t = int64_t;
|
|||
*/
|
||||
using efitimems64_t = int64_t;
|
||||
|
||||
/**
|
||||
* integer time in milliseconds (1/1_000 of a second)
|
||||
* 32 bit 4B / 1000 = 4M seconds = 1111.11 hours = 23(or46?) days.
|
||||
* Please restart your ECU every 23(or46?) days? :) See issue https://github.com/rusefi/rusefi/issues/4554 tag#4554
|
||||
* See getTimeNowUs()
|
||||
*/
|
||||
using efitimems_t = uint32_t;
|
||||
|
||||
// date-time struct a la ctime struct tm
|
||||
typedef struct {
|
||||
uint32_t year;
|
||||
|
|
|
@ -20,7 +20,7 @@ ButtonDebounce::ButtonDebounce(const char *name)
|
|||
/**
|
||||
We need to have a separate init function because we do not have the pin or mode in the context in which the class is originally created
|
||||
*/
|
||||
void ButtonDebounce::init (efitimems_t threshold, brain_pin_e &pin, pin_input_mode_e &mode) {
|
||||
void ButtonDebounce::init(efitick_t threshold, brain_pin_e &pin, pin_input_mode_e &mode) {
|
||||
// we need to keep track of whether we have already been initialized due to the way unit tests run.
|
||||
if (!isInstanceRegisteredInGlobalList) {
|
||||
// Link us to the list that is used to track ButtonDebounce instances, so that when the configuration changes,
|
||||
|
@ -28,7 +28,7 @@ void ButtonDebounce::init (efitimems_t threshold, brain_pin_e &pin, pin_input_mo
|
|||
nextDebounce = s_firstDebounce;
|
||||
s_firstDebounce = this;
|
||||
}
|
||||
m_threshold = MS2NT(threshold);
|
||||
m_threshold = threshold;
|
||||
timeLast = 0;
|
||||
m_pin = &pin;
|
||||
m_mode = &mode;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
class ButtonDebounce {
|
||||
public:
|
||||
explicit ButtonDebounce(const char* name);
|
||||
void init(efitimems_t threshold, brain_pin_e &pin, pin_input_mode_e &mode);
|
||||
void init(efitick_t threshold, brain_pin_e &pin, pin_input_mode_e &mode);
|
||||
void stopConfiguration();
|
||||
void startConfiguration();
|
||||
bool readPinEvent();
|
||||
|
|
Loading…
Reference in New Issue