[PATCH V2 1/2] RTEMS GPIO API definition and implementation.
gedare at rtems.org
Thu Aug 13 12:10:24 UTC 2015
On Thu, Aug 13, 2015 at 8:04 AM, Ketul Shah <ketulshah1993 at 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));
> Best Regards,
Please open a ticket in our Trac and attach a patch there.
More information about the devel