Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Table B-1 provides the I/O mappings and Muxing for Intel Galileo Gen 2. This table was created by Emutex, one of Intel's partners (see www.emutexlabs.com).

Table B-1. Intel Galileo Gen 2 I/O Mappings and Muxing

The follow are acronyms listed in the column “Pin Mux 1 GPIO” and “Pin Mux 2 GPIO” of table B-1 means:

  • L: GPIO configured as OUPUT and level LOW (0)

  • H: GPIO configured as OUTPUT and level HIGH (1)

The following are acronyms listed in the column “Interrupt Modes” of Table B-1:

  • L: low-level

  • H: high-level

  • R: rising-edge

  • F: falling-edge

  • B: both edges

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

  • Setting IO1 as GPIO output:

echo -n "28" > /sys/class/gpio/export

echo -n "29" > /sys/class/gpio/export

echo -n "12" > /sys/class/gpio/export

echo 0 > /sys/class/gpio/gpio28/value

echo 0 > /sys/class/gpio/gpio29/value

echo out > /sys/class/gpio/gpio12/direction

echo 0 > /sys/class/gpio/gpio12/value # will set OUTPUT as LOW

echo 1 > /sys/class/gpio/gpio12/value # will set OUTPUT as HIGH

  • Setting IO1 as GPIO input (no pull-up):

echo -n "28" > /sys/class/gpio/export

echo -n "29" > /sys/class/gpio/export

echo -n "12" > /sys/class/gpio/export

echo -n "45" > /sys/class/gpio/export

echo 0 > /sys/class/gpio/gpio45/value

echo 1 > /sys/class/gpio/gpio28/value

echo 0 > /sys/class/gpio/gpio29/value

echo 12 > /sys/class/gpio/export

echo in > /sys/class/gpio/gpio12/direction

cat /sys/class/gpio/gpio12/value

  • Setting IO1 as GPIO input (with pull-up):

echo -n "29" > /sys/class/gpio/export

echo -n "12" > /sys/class/gpio/export

echo 1 > /sys/class/gpio/gpio29/value

cat /sys/class/gpio/gpio12/value