Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161109

Manipulating GPIOs on embedded linux devices could be more friendly

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u92
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
    • Subcomponent:
      dio
    • CPU:
      x86_64
    • OS:
      linux

      Description

      A DESCRIPTION OF THE REQUEST :
      Currently when using the Device IO library, there is a hard coded template that expects to use a gpio at /sys/class/gpio/gpio#, where # is passed in from opening the GPIO with DeviceManager. I am proposing that if the user specifies a name instead of a number, that the string be /sys/class/gpio/NAME instead when trying to manipulate the GPIO in linux.

      JUSTIFICATION :
      I have a platform that exposes gpios as strings like P3_1 for gpio 39, and P3_2 for gpio 40, etc. It doesn't use gpio39 and the name for gpio 39 when populating the device in /sys. It would be nice to not have to hack the kernel to use strings that the Java DIO is happy with - Java DIO should be a bit more flexible in allowing the user to specify the name of the gpio if it isn't standard.


      CUSTOMER SUBMITTED WORKAROUND :
      Fix the Linux kernel I am working on to expose GPIO names that Java DIO likes.

        Attachments

          Activity

            People

            Assignee:
            snazarki Sergey Nazarkin
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: