Hi,
I just started looking around with the NRF52840 development kit and tried to implement simple GPIO interrupt based on the button sample.
I settled multiple GPIO pins configured in interrupt mode and wanted to use only one callback function to handle them but can't find a way to know which pin/device tree object has triggered the call.
I found that we might be able to do a relation between the last argument given to the callback handler (uint32_t pins, that seems to be pin mask value) but it really seems ugly to do so.
Am I missing something or do I have to declare/define dedicated callback function for each interrupt ?
Thanks !