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:
Mihai Tudor Panu
2018-09-04 07:53:16 -07:00
parent 6ae7e9125b
commit 62f84dcc47
9 changed files with 2 additions and 45 deletions

View File

@ -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