auto-sync
This commit is contained in:
parent
01b8268e24
commit
6e22a5819f
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue