refactoring - reducing GPIO complexity
This commit is contained in:
parent
46f02fb3f7
commit
e3affd2fa6
|
@ -253,10 +253,6 @@ static void outputPinRegisterExt(const char *msg, OutputPin *output, ioportid_t
|
|||
#endif /* EFI_GPIO_HARDWARE */
|
||||
}
|
||||
|
||||
void outputPinRegister(const char *msg, OutputPin *output, ioportid_t port, uint32_t pin) {
|
||||
outputPinRegisterExt(msg, output, port, pin, &DEFAULT_OUTPUT);
|
||||
}
|
||||
|
||||
void initPrimaryPins(void) {
|
||||
outputPinRegisterExt2("led: ERROR status", &enginePins.errorLedPin, LED_ERROR_BRAIN_PIN, &DEFAULT_OUTPUT);
|
||||
}
|
||||
|
|
|
@ -303,9 +303,6 @@ void initTimePerfActions(Logging *sharedLogger) {
|
|||
rtcStartTime = rtcGetTimeUnixSec(&RTCD1);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// initOutputPin("test pad", &testOutput, TEST_PORT, TEST_PIN);
|
||||
addConsoleActionI("perftest", runTests);
|
||||
|
||||
addConsoleAction("timeinfo", timeInfo);
|
||||
|
|
|
@ -74,10 +74,6 @@ void initOutputPinExt(const char *msg, OutputPin *outputPin, ioportid_t port, ui
|
|||
mySetPadMode(msg, port, pinNumber, mode);
|
||||
}
|
||||
|
||||
void initOutputPin(const char *msg, OutputPin *outputPin, ioportid_t port, uint32_t pinNumber) {
|
||||
initOutputPinExt(msg, outputPin, port, pinNumber, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method would set an error condition if pin is already used
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue