Forum Discussion
Altera_Forum
Honored Contributor
19 years agointerrupt in button_pio
HI, Does anyone know how to get button_pio to run a function based on interrupt. E.g. Press a button, it generates an interrupt so that cpu can read the status and do something. I am ...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by albertyong88@Nov 15 2006, 11:44 PM hi,
what i have done now is included the altera_pio_button.c into the source tree locally, and change makefile and kconfig accordingly, and then compile by doing
make; make linux image;
all seems to be fine, but when i look at /proc/interrupts, there is no list of pio_buttons nor is there /dev/btn
any ideas what went wrong ?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19452)
--- quote end ---
--- Quote End --- you need to open and read the char dev /dev/btn. eg, cat /dev/btn The nios2 patches (ver17) to uClinux-dist are updated to include button and lcd drivers now.