Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
714 Views

How do I use the button's driver?

I am a beginner.And I find altera_pio_button.c in "/driver/char". I want to read button's value and generate a ISR. 

How do I use the functions in this file("altera_pio_button.c").
0 Kudos
1 Reply
Valued Contributor III
4 Views

Re: How do I use the button's driver?

Try: 

 

cat /dev/button 

 

and hitting some buttons on your dev board. 

 

If the altera button driver was included in your kernel, you should see numbers showing up on your console as you press the buttons on the development board.
0 Kudos