refactoring

This commit is contained in:
rusefillc 2020-12-06 19:04:23 -05:00
parent 8739e192f5
commit 2e8ae3ca94
4 changed files with 5 additions and 6 deletions

View File

@ -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]);

View File

@ -10,6 +10,6 @@
#include "global.h"
void initAuxPid(Logging *sharedLogger);
void startAuxPins(void);
void stopAuxPins(void);
void startAuxPins();
void stopAuxPins();

View File

@ -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));

View File

@ -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);