refactoring: inlining method

This commit is contained in:
rusefi 2017-07-10 21:34:31 -04:00
parent c552c4800b
commit 45941bd99d
3 changed files with 4 additions and 8 deletions

View File

@ -228,7 +228,9 @@ void OutputPin::unregisterOutput(brain_pin_e oldPin, brain_pin_e newPin) {
if (oldPin != GPIO_UNASSIGNED && oldPin != newPin) {
scheduleMsg(logger, "unregistering %s", hwPortname(oldPin));
unmarkPin(oldPin);
unregister();
#if EFI_GPIO_HARDWARE || defined(__DOXYGEN__)
port = NULL;
#endif /* EFI_PROD_CODE */
}
}

View File

@ -295,12 +295,6 @@ bool OutputPin::getLogicValue() {
return currentLogicValue;
}
void OutputPin::unregister() {
#if EFI_GPIO_HARDWARE || defined(__DOXYGEN__)
port = NULL;
#endif /* EFI_PROD_CODE */
}
void OutputPin::setDefaultPinState(pin_output_mode_e *outputMode) {
pin_output_mode_e mode = *outputMode;
assertOMode(mode);

View File

@ -31,7 +31,7 @@ public:
void setValue(int logicValue);
void setDefaultPinState(pin_output_mode_e *defaultState);
bool getLogicValue();
void unregister();
bool isPinAssigned();
void initPin(const char *msg, brain_pin_e brainPin);
void initPin(const char *msg, brain_pin_e brainPin, pin_output_mode_e *outputMode);