cancel
Showing results for 
Search instead for 
Did you mean: 

External interruption from userland on STM32MP157F - DK2

jutoroa
Associate III

Hello,

I'm trying to configure an externall interrupt (for a digital signal) to be handle from the User Space. I have configured the following node in the device tree on the root node:

/ {
...
exti_gpio_node {
compatible = "test,button";
input-gpios = <&gpiod 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
interrupts-extended = <&gpiod 15 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "qwerty";
status = "okay";
};
...
};

 I have read this STM documment about interrupts overview, but I'm not clear about how it's supose to be the handling of this interruption from the userSpace. My goal is to make a script that have some "callback()" function to be able to do something with the interrupt signal.

I appreciate any information that can make me understand how the workflow should be, or even if you could give me an example about it.

Juan P.

@Tesla DeLorean @waclawek.jan @TDK @Peter BENSCH @Eleon BORLINI @Imen.D  @Brian TIDAL @PatrickF @Olivier GALLIEN @obedPH 

0 REPLIES 0