Altera_Forum
Honored Contributor
19 years agoHow can i wakeup program thread with button PIO
I found Microtronix's driver for button PIO (on Altera dev. board) altera_pio_button.c
It seem to catch the IRQ from button and update value in device file. Is it possible to use this IRQ to wakeup a thread in user program? I think that IRQ is accessible only through the kernel, but maybe the driver can send a signal or the thread (in the user program) can wait in wait_queue of the driver? If it possible, please write some code because i still not friendly with Linux functions.