VAR-SOM-SD600 gpio: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
*Interruptable GPIOs | *Interruptable GPIOs | ||
<br/> | |||
= GPIO manipulation = | = GPIO manipulation = | ||
<div><div>GPIO manipulation is done through the standard gpiolib<br/>The usage / API is well described in kernel/Documentation/gpio.txt. | <div><div>GPIO manipulation is done through the standard gpiolib<br/>The usage / API is well described in kernel/Documentation/gpio.txt. | ||
Additional useful links: [http://elinux.org/GPIO http://elinux.org/GPIO] | Additional useful links: <a href="[http://elinux.org/GPIO http://elinux.org/GPIO]">[http://elinux.org/GPIO http://elinux.org/GPIO]</a> | ||
<a href="[https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c]">[https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c]</a> | |||
[https://developer.ridgerun.com/wiki/index.php/ | <a href="[https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals]">[https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals]</a> | ||
[ | <a href="[http://mondi.web.cs.unibo.it/gpio_control.html http://mondi.web.cs.unibo.it/gpio_control.html]">[http://mondi.web.cs.unibo.it/gpio_control.html http://mondi.web.cs.unibo.it/gpio_control.html]</a> | ||
<br/><br/> <br/> | |||
<br/><br/> | |||
= PinMux configuration = | = PinMux configuration = | ||
GPIO mux configuration is done in kernel\arch\arm\mach-msm\board-8064-gpiomux.c At apq8064_init_gpiomux(void) you can find several examples of pinmux configuration. or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port. | GPIO mux configuration is done in kernel\arch\arm\mach-msm\board-8064-gpiomux.c At apq8064_init_gpiomux(void) you can find several examples of pinmux configuration. or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port. | ||
<br/></div></div> | <br/><br/><br/><br/><br/></div></div><br/><br/><br/><br/> | ||
<br/><br/><br/><br/><br/><br/> |
Revision as of 11:02, 4 May 2014
GPIOs features
- 90 GPIO pins (GPIO_0 to GPIO_89)
- Configurable pull-up/down
- Configurable output drive current
- Interruptable GPIOs
GPIO manipulation
The usage / API is well described in kernel/Documentation/gpio.txt.
Additional useful links: <a href="http://elinux.org/GPIO">http://elinux.org/GPIO</a>
<a href="https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c">https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c</a>
<a href="https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals">https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals</a>
<a href="http://mondi.web.cs.unibo.it/gpio_control.html">http://mondi.web.cs.unibo.it/gpio_control.html</a>
PinMux configuration
GPIO mux configuration is done in kernel\arch\arm\mach-msm\board-8064-gpiomux.c At apq8064_init_gpiomux(void) you can find several examples of pinmux configuration. or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.