auto-sync

This commit is contained in:
rusEfi 2015-08-18 17:01:49 -04:00
parent 01b8268e24
commit 6e22a5819f
1 changed files with 13 additions and 0 deletions

View File

@ -1,16 +1,29 @@
/* /*
* @file tachometer.cpp * @file tachometer.cpp
* @brief This is about driving external analog tachometers
* *
* @date Aug 18, 2015 * @date Aug 18, 2015
* @author Andrey Belomutskiy, (c) 2012-2015 * @author Andrey Belomutskiy, (c) 2012-2015
*/ */
#include "tachometer.h" #include "tachometer.h"
#include "trigger_central.h"
EXTERN_ENGINE; EXTERN_ENGINE;
static OutputPin tachOut;
static void tachSignalCallback(trigger_event_e ckpSignalType,
uint32_t index DECLARE_ENGINE_PARAMETER_S) {
}
void initTachometer(void) { void initTachometer(void) {
if (boardConfiguration->tachOutputPin == GPIO_UNASSIGNED) if (boardConfiguration->tachOutputPin == GPIO_UNASSIGNED)
return; return;
outputPinRegisterExt2("tach", &tachOut, boardConfiguration->tachOutputPin, &boardConfiguration->tachOutputPinMode);
addTriggerEventListener(tachSignalCallback, "tach", engine);
} }