Firefly Open Source Community

Title: [RK3288-Reload] How to handle interrupt using GPIO? [Print This Page]

Author: fireworks    Time: 2/21/2018 17:47
Title: [RK3288-Reload] How to handle interrupt using GPIO?
Hi, I'm using RK3288-reload with linux.

Using RK3288 as master board, I connected SPI pins(MOSI, MISO, CLK, CS) to slave board.
Slave board has nIRQ pin and the pin goes low (normal high) every 1second.
I wanted to use this pin as a interrupt, so I connected GPIO5_C2 pin at the RK3288-reload.
I set "/sys/class/gpio/gpio178/direction" to "in" and checked value.
The value works fine (LOW signal -> value is 0 / HIGH signal -> value is 1).
But I don't know how to control with this GPIO pin as a interrupt.

Can you give me some information how to handle interrupt in RK3288-reload?
Author: leungÏÈÉ­    Time: 2/23/2018 09:44
http://en.t-firefly.com/doc/product/info/id/242.html
wiki may can help you




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1