Lantronix EDS2100 Linux SDK - User Guide - Page 60
GPIO pins.
View all Lantronix EDS2100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 60 highlights
10 Sample Applications } config cp2 { type output state enable invert disable } config cp3 { type output state enable invert disable } config cp4 { type output state enable invert disable } group LED { type output state enable bit0 CP1 bit1 CP2 bit2 CP3 bit3 CP4 } The cpm program can then be invoked to light all four LEDs with the following: $ cpm -N LED -V 15 The '-N' argument is for specifying the CP group name, and the '-V' argument for specifying which GPIOs to enable. Below is a high level diagram showing how the CP Manager interfaces with the GPIO pins. Linux Software Developers Kit (SDK) User Guide 60
10 Sample Applications
Linux Software Developers Kit (SDK) User Guide
60
}
config cp2 {
type output
state enable
invert disable
}
config cp3 {
type output
state enable
invert disable
}
config cp4 {
type output
state enable
invert disable
}
group LED {
type output
state enable
bit0 CP1
bit1 CP2
bit2 CP3
bit3 CP4
}
The cpm program can then be invoked to light all four LEDs with the following:
$ cpm -N LED -V 15
The '-N' argument is for specifying the CP group name, and the '-V' argument for specifying which
GPIOs to enable. Below is a high level diagram showing how the CP Manager interfaces with the
GPIO pins.