refactoring
This commit is contained in:
parent
8739e192f5
commit
2e8ae3ca94
|
@ -125,13 +125,13 @@ static void turnAuxPidOn(int index) {
|
|||
engineConfiguration->auxPidFrequency[index], 0.1);
|
||||
}
|
||||
|
||||
void startAuxPins(void) {
|
||||
void startAuxPins() {
|
||||
for (int i = 0;i <AUX_PID_COUNT;i++) {
|
||||
turnAuxPidOn(i);
|
||||
}
|
||||
}
|
||||
|
||||
void stopAuxPins(void) {
|
||||
void stopAuxPins() {
|
||||
#if EFI_PROD_CODE
|
||||
for (int i = 0;i < AUX_PID_COUNT;i++) {
|
||||
efiSetPadUnused(activeConfiguration.auxPidPins[i]);
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#include "global.h"
|
||||
|
||||
void initAuxPid(Logging *sharedLogger);
|
||||
void startAuxPins(void);
|
||||
void stopAuxPins(void);
|
||||
void startAuxPins();
|
||||
void stopAuxPins();
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ ICUDriver * getInputCaptureDriver(const char *msg, brain_pin_e hwPin) {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
void turnOnCapturePin(const char *msg, brain_pin_e brainPin) {
|
||||
static void turnOnCapturePin(const char *msg, brain_pin_e brainPin) {
|
||||
ICUDriver *driver = getInputCaptureDriver(msg, brainPin);
|
||||
if (driver != NULL) {
|
||||
iomode_t mode = (iomode_t) PAL_MODE_ALTERNATE(getAlternateFunctions(driver));
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
digital_input_s* startDigitalCapture(const char *msg, brain_pin_e brainPin);
|
||||
|
||||
void turnOnCapturePin(const char *msg, brain_pin_e brainPin);
|
||||
void turnOffCapturePin(brain_pin_e brainPin);
|
||||
|
||||
void stopDigitalCapture(const char *msg, brain_pin_e brainPin);
|
||||
|
|
Loading…
Reference in New Issue