mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +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:
@ -100,11 +100,6 @@ speaker_context speaker_init(int pin)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(UPM_PLATFORM_LINUX)
|
||||
// Would prefer, but not fatal if not available
|
||||
mraa_gpio_use_mmaped(dev->gpio, 1);
|
||||
#endif // UPM_PLATFORM_LINUX
|
||||
|
||||
mraa_gpio_dir(dev->gpio, MRAA_GPIO_OUT);
|
||||
|
||||
return dev;
|
||||
|
Reference in New Issue
Block a user