BCM2835 Interrupt Handler
Posted: Thu May 11, 2017 12:47 am
Hi everybody:
I am pretty much noob in ChibiOS, I used this RTOS in my embedded design class, I am planning to use my Raspberry B+ (BCM2835) under ChibiOS. I want to monitor water flows for a school project, so I am going to use a hall effect water flow sensor, basically what I want to do is to count the number of pulses in a given pin and re-calculate the flow measure every second, for this reason I need to access to interrupts, I think (I don't really know) that the answer to my question is by using the EXT Driver Library but I don't know how to configure a PAD (pin) as an interrupt source. I already check in the test HAL examples but the BCM2835 has no EXT Driver examples.
I would appreciate any help, advice or example that you could give me...
Thank you
Martin
I am pretty much noob in ChibiOS, I used this RTOS in my embedded design class, I am planning to use my Raspberry B+ (BCM2835) under ChibiOS. I want to monitor water flows for a school project, so I am going to use a hall effect water flow sensor, basically what I want to do is to count the number of pulses in a given pin and re-calculate the flow measure every second, for this reason I need to access to interrupts, I think (I don't really know) that the answer to my question is by using the EXT Driver Library but I don't know how to configure a PAD (pin) as an interrupt source. I already check in the test HAL examples but the BCM2835 has no EXT Driver examples.
I would appreciate any help, advice or example that you could give me...
Thank you
Martin