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 Diskussionen

How do I use the button's driver?

Altera_Forum
Geehrter Beitragender II
1.164Aufrufe

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 Antworten
Altera_Forum
Geehrter Beitragender II
454Aufrufe

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.
Antworten