mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +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:
@ -95,19 +95,6 @@ my9221_context my9221_init(int dataPin, int clockPin,
|
||||
|
||||
mraa_gpio_dir(dev->gpioData, MRAA_GPIO_OUT);
|
||||
|
||||
#if defined(UPM_PLATFORM_LINUX)
|
||||
// we warn if these fail, since it may not be possible to handle
|
||||
// more than one instance
|
||||
|
||||
if (mraa_gpio_use_mmaped(dev->gpioClk, 1))
|
||||
printf("%s: Warning: mmap of Clk pin failed, correct operation "
|
||||
"may be affected.\n", __FUNCTION__);
|
||||
|
||||
if (mraa_gpio_use_mmaped(dev->gpioData, 1))
|
||||
printf("%s: Warning: mmap of Data pin failed, correct operation "
|
||||
"may be affected.\n", __FUNCTION__);
|
||||
#endif // UPM_PLATFORM_LINUX
|
||||
|
||||
my9221_set_low_intensity_value(dev, 0x00); // full off
|
||||
my9221_set_high_intensity_value(dev, 0xff); // full bright
|
||||
|
||||
|
Reference in New Issue
Block a user