APPENDIX A

image

Intel Galileo I/O and Muxing

Table A-1 presents the I/O mappings for Intel Galileo. This table is the official port I/O mapping provided by Intel and also can be found accessing “https://communities.intel.com/docs/DOC-21920”.

Table A-1. Intel Galileo I/O Mappings

Tab1

Following are acronyms for Table A-1:

  • Cypr: Crypress GPIO Expander
  • BI: Bidirectional
  • I: Input without pull-up off
  • Int: Interruption pins
  • Dir: Direction

Table A-2 presents the Mux Selectors for Intel Galileo.

Table A-2. Intel Galileo Muxing

Tab2

Following are acronyms for Table A-2:

  • O: Output
  • Dir: Direction
  • U: Undefined

The following commands demonstrated some examples how to use the table using Linux terminal shell:

  • Setting IO7 as GPIO output:
    echo -n "27" > /sys/class/gpio/export
    echo -n "out" > /sys/class/gpio/gpio27/direction
    echo 0 > /sys/class/gpio/gpio27/value # will set OUTPUT as LOW
    echo 1 > /sys/class/gpio/gpio27/value # will set OUTPUT as HIGH
  • Setting IO7 as GPIO input:
    echo -n "27" > /sys/class/gpio/export
    echo -n "in" > /sys/class/gpio/gpio27/direction
    cat /sys/class/gpio/gpio27/value
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.252.192