Lantronix EDS2100 Linux SDK - User Guide - Page 59
cpm CP Manager
View all Lantronix EDS2100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 59 highlights
10 Sample Applications Figure 10-8. Serial-To-Ethernet GPIO Setup Screen cpm (CP Manager) The Configurable Pin Manager (cpm) provides shell level access to the device's GPIO pins. It also provides an example of how to use the libcp API to communicate with the CP GPIO driver. To use CPs as GPIO, you have to configure the kernel. (see CONFIG_LTRX_CPM_DEFAULT_GPIO of Appendix A Important Configuration Switches) The cpm.conf configuration file is used to group CPs into bit patterns. Note that the MatchPort AR has seven GPIO pins, whereas the XPort Pro has three of which 2 are shared with the serial driver. The cpm.conf file is of the following format: config cp { type # direction state # pin assign inverted # active low or high } group { type # direction state # group status bit CP # CP pin assign } Below is an example configuration file for creating a group called LED to control output for CP1 to CP4 NOTE: The XPort Pro supports only 3 GPIO pins. [cpm.conf] config cp1 { type output state enable invert disable Linux Software Developers Kit (SDK) User Guide 59