GPIO IRQ edge

Baptiste
Baptiste New Member Posts: 4
Hello,

I try to set the edge on an exported gpio pin on the UpSquare, OS is the official Linux debian ubilinux for UpSquare :
All commands are executed as root, without problem.

echo 402 > /sys/class/gpio/export
chmod 777 /sys/class/gpio/gpio402/*
echo "in" > /sys/class/gpio/gpio402/direction

Then, i try:

echo "rising" > /sys/class/gpio/gpio402/edge
I get: "echo: write error: Operation not permitted"
I check permissions: all files are root and have read/write/exec flags set.

I try to set the edge from a custom C program, executed as root. but I get the exact same error.

Any ideas ?
Maybe the pin do not support IRQ edge ?
How can I check if a pin support edge sense detection ?

Regards
Baptiste

Comments