mirror of
https://github.com/eclipse/upm.git
synced 2025-07-27 06:01:16 +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:
@ -53,13 +53,11 @@ SSD1351::SSD1351 (int oc, int dc, int rst) :
|
||||
": Could not initialize CS pin");
|
||||
return;
|
||||
}
|
||||
m_oc.useMmap(true);
|
||||
if (m_dc.dir(mraa::DIR_OUT) != mraa::SUCCESS) {
|
||||
throw std::runtime_error(string(__FUNCTION__) +
|
||||
": Could not initialize data/cmd pin");
|
||||
return;
|
||||
}
|
||||
m_dc.useMmap(true);
|
||||
if (m_rst.dir(mraa::DIR_OUT) != mraa::SUCCESS) {
|
||||
throw std::runtime_error(string(__FUNCTION__) +
|
||||
": Could not initialize reset pin");
|
||||
|
Reference in New Issue
Block a user