RTEMS | Connect interrupt to gpio Input Pin on beaglebone black (bsps/shared/dev/gpio/gpio-support.c) (#5198)

Heinz Junkes (@junkes) gitlab at rtems.org
Fri Jan 31 16:51:19 UTC 2025




Heinz Junkes commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5198#note_118797


I just wanted to let you know that I'm working on it myself. 
I replaced the bsps/arm/beagle.gpio/bbb-gpio.c with the variant from ketul93
(https://gist.github.com/ketul93/d717555951174a74c8b4).
Unfortunately, the interrupt handling is not fully implemented there. 
By adding
```
+  mmio_set((gpio_bank_addrs[bank] + AM335X_GPIO_IRQSTATUS_SET_0), BIT(pin));
+  mmio_set((gpio_bank_addrs[bank] + AM335X_GPIO_IRQSTATUS_SET_1), BIT(pin));
```
I have managed to call the generic_isr. I am now struggling through the Reference Manual of the AM335x (4156 pages) to understand the GPIO support ...

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5198#note_118797
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250131/224f6436/attachment-0001.htm>


More information about the bugs mailing list