[RTEMS Project] #2390: GPIO API bug

RTEMS trac trac at rtems.org
Thu Aug 13 14:20:50 UTC 2015

#2390: GPIO API bug
 Reporter:  ketul    |      Owner:
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:  4.11.1
Component:  General  |    Version:  4.10
 Severity:  normal   |   Keywords:

 Recently GPIO API is merged with the mainline. And Eventually I used the
 same for GPIO driver for BBB. And while testing it on hardware I did not
 able to get the Pin Input value correctly. So after debugging I found that
 it is the issue with the function return type. A brief for the same is
 given :-

 rtems_gpio_bsp_get_value() has return type of uint8_t. But as per API this
 function should return the bitmask. (DATAIN register & pinmask) . As BBB
 has pin no. 0 to 31 this should return 32 bits instead of 8.

 Herewith I am attaching a patch for that.



Ticket URL: <http://devel.rtems.org/ticket/2390>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list