Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

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").

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.