blob: fd26d8412017ecd0fe9e4a73d507620769c337f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
This directory contains three different example directories that contain
documentation and examples for interacting with the GPIO resources on the Altas
board.
raw-gpio - contains a README file that describes how to discover and interact
with the gpio framework provided by the linux environment on the
DE10-Nano target. There is a script and two C programs that
demonstrate how to programmatically detect the state of the KEY0 push
button on the DE10-Nano board. The script and one C program simply
read the state, output it and exit, the second C program enables the
interrupt functionality for the GPIO and waits for the push button
press to generate the interrupt that it waits for.
gpio-keys - contains a README file that describes how to discover and interact
with the gpio-keys framework provided by the linux environment on
the DE10-Nano target. There is a script and two C programs that
demonstrate how to programmatically detect the input events
generated by the SW0, SW1, SW2 and SW3 switches on the DE10-Nano
board. The script and one C program simply report the input events
as they are detected, the second C program adds a call to the
ioctl() function to read the current state of all four switches as
each input event is processed.
gpio-leds - contains a README file that describes how to discover and interact
with the gpio-leds framework provided by the linux environment on
the DE10-Nano target. There is a script and a C program that
demonstrate how to programmatically control the LEDS on the
DE10-Nano board.
Please see the README files in each sub directory for more information.
|