Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to use interrupt?
Hello. I want to use interrupt from USER_PIO, but I don't know how to use. I tried this sample code , but it seems that ISR is not executed. (I modified two point. *definition of...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by glecordier@Feb 6 2006, 06:31 AM i use the interrupt with the button pio like that:
# include <cyg/hal/io.h> // for iowr and iord
unsigned char ledpio;
cyg_interrupt int_pio;
cyg_handle_t int_pio_handle;
:
:
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12562)
--- quote end ---
--- Quote End --- Thank you, All. Especially GLecordier, thank you for showing your code. Now I can use interrupt as I expect. The reasons are (1) I tried to use printf in ISR. (2) I didn't unmask the interrupt. Thank you, very much.