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++
12745 ディスカッション

How do I use the button's driver?

Altera_Forum
名誉コントリビューター II
1,166件の閲覧回数

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 件の賞賛
1 返信
Altera_Forum
名誉コントリビューター II
456件の閲覧回数

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.
返信