Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

How do I use the button's driver?

Altera_Forum
Honored Contributor II
1,000 Views

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
Altera_Forum
Honored Contributor II
290 Views

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
Reply