mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 03:11:15 +03:00
mmap-gpio: remove deprecated mmapped gpio function calls
The memory mapped GPIO function calls have been deprecated and in turn removed from the UPM libraries. MRAA now provides the best/fastest GPIO access possible based on the selected platform/pin automatically. Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -47,7 +47,6 @@ StepMotor::StepMotor (int dirPin, int stePin, int steps, int enPin)
|
||||
": Could not initialize dirPin as output");
|
||||
return;
|
||||
}
|
||||
m_dirPinCtx.useMmap(true);
|
||||
m_dirPinCtx.write(0);
|
||||
|
||||
if (m_stePinCtx.dir(mraa::DIR_OUT) != mraa::SUCCESS) {
|
||||
@ -55,7 +54,6 @@ StepMotor::StepMotor (int dirPin, int stePin, int steps, int enPin)
|
||||
": Could not initialize stePin as output");
|
||||
return;
|
||||
}
|
||||
m_stePinCtx.useMmap(true);
|
||||
m_stePinCtx.write(0);
|
||||
|
||||
if (enPin >= 0) {
|
||||
@ -65,7 +63,6 @@ StepMotor::StepMotor (int dirPin, int stePin, int steps, int enPin)
|
||||
": Could not initialize enPin as output");
|
||||
return;
|
||||
}
|
||||
m_enPinCtx->useMmap(true);
|
||||
enable(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user