2020-09-09 00:22:15 -07:00
|
|
|
#include "start_stop.h"
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
EXTERN_ENGINE;
|
|
|
|
|
|
|
|
ButtonDebounce startStopButtonDebounce;
|
|
|
|
|
|
|
|
void initStartStopButton(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
2020-09-19 14:17:44 -07:00
|
|
|
/* startCrankingDuration is efitimesec_t, so we need to multiply by 1000 to get milliseconds */
|
|
|
|
startStopButtonDebounce.init((CONFIG(startCrankingDuration)*1000), &CONFIG(startStopButtonPin), &CONFIG(startStopButtonMode));
|
2020-09-09 00:22:15 -07:00
|
|
|
}
|