On Thu, Aug 13, 2015 at 8:04 AM, Ketul Shah <ketulshah1...@gmail.com> wrote: > Hi Andre, > > Great API and happy to know that it is merged with main line. > > Eventually I implemented GPIO driver for BBB using this API. After debugging > for rtems_gpio_get_value() on BBB I found the following bug. > > For BBB, GPIO pin nos. varies from 0 to 32. So function return type would be > uint32_t instead of uint8_t. > > For BBB I wrote :- > > uint32_t rtems_gpio_bsp_get_value(uint32_t bank, uint32_t pin) > { > return (mmio_read(bbb_reg(bank, AM335X_GPIO_DATAIN)) & BIT(pin)); > } > > Thanks. > > Best Regards, > Ketul >
Please open a ticket in our Trac and attach a patch there. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel