refactoring - reducing GPIO complexity
This commit is contained in:
parent
03b66eaa4f
commit
47e7835050
|
@ -58,8 +58,7 @@ void turnPinHigh(NamedOutputPin *output) {
|
||||||
#endif /* EFI_DEFAILED_LOGGING */
|
#endif /* EFI_DEFAILED_LOGGING */
|
||||||
|
|
||||||
// turn the output level ACTIVE
|
// turn the output level ACTIVE
|
||||||
// todo: this XOR should go inside the setOutputPinValue method
|
output->setValue(true);
|
||||||
doSetOutputPinValue2(output, true);
|
|
||||||
|
|
||||||
// sleep for the needed duration
|
// sleep for the needed duration
|
||||||
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
|
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
|
||||||
|
@ -78,7 +77,7 @@ void turnPinHigh(NamedOutputPin *output) {
|
||||||
void turnPinLow(NamedOutputPin *output) {
|
void turnPinLow(NamedOutputPin *output) {
|
||||||
efiAssertVoid(output!=NULL, "NULL turnPinLow");
|
efiAssertVoid(output!=NULL, "NULL turnPinLow");
|
||||||
// turn off the output
|
// turn off the output
|
||||||
doSetOutputPinValue2(output, false);
|
output->setValue(false);
|
||||||
|
|
||||||
#if EFI_DEFAILED_LOGGING || defined(__DOXYGEN__)
|
#if EFI_DEFAILED_LOGGING || defined(__DOXYGEN__)
|
||||||
systime_t after = hTimeNow();
|
systime_t after = hTimeNow();
|
||||||
|
|
Loading…
Reference in New Issue