Lantronix EDS2100 Linux SDK - User Guide - Page 60

GPIO pins.

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

  • 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
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

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.