Configure Io11 As A Gpio Input, With Pullup Resistor Disabled; Configure Io7 As A Gpio Input, With Pullup Resistor Enabled - Intel Edison Kit for Arduino Hardware Manual

Table of Contents

Advertisement

11.2

Configure IO11 as a GPIO input, with pullup resistor disabled

To configure IO11 as a GPIO input, with pullup resistor disabled, do the following:
1.
Refer to Table 2 for the GPIO number. According to Table 2, the GPIO number for IO11 is 43.
2.
According to Table 4, GPIO 262 must be set to 1 to select GPIO/SPI, GPIO 241 must be set to 0 to select
GPIO, and GPIO 43 pin-mux must be set to 'mode0' to select GPIO.
3.
According to Table 7, GPIO 259 must be set to 0 to disable the output direction for IO11.
4.
According to Table 4, GPIO 227 must be set as a high-impedance input to disable the external pullup
resistor for IO5.
5.
According to Table 6, the TRI_STATE_ALL signal is controlled by GPIO 214.
After you have gathered all of this information, enter the following commands in Linux:
# echo 43 > /sys/class/gpio/export
# echo 262 > /sys/class/gpio/export
# echo 241 > /sys/class/gpio/export
# echo 259 > /sys/class/gpio/export
# echo 227 > /sys/class/gpio/export
# echo 214 > /sys/class/gpio/export
# echo high > /sys/class/gpio/gpio214/direction
# echo high > /sys/class/gpio/gpio262/direction
# echo low > /sys/class/gpio/gpio241/direction
# echo mode0 > /sys/kernel/debug/gpio_debug/gpio43/current_pinmux
# echo low > /sys/class/gpio/gpio259/direction
# echo in > /sys/class/gpio/gpio227/direction
# echo in > /sys/class/gpio/gpio43/direction
# echo low > /sys/class/gpio/gpio214/direction
You should be able to use IO11 as a GPIO input. For example:
# cat /sys/class/gpio/gpio43/value
11.3

Configure IO7 as a GPIO input, with pullup resistor enabled

To configure IO7 as a GPIO input, with pullup resistor enabled, do the following:
1.
Refer to Table 2 for the GPIO number. According to Table 2, the GPIO number for IO7 is 48.
2.
According to Table 7, GPIO 255 must be set to 0 to disable the output direction for IO7.
3.
According to Table 7, GPIO 223 must be set to output high to enable the external pullup resistor for IO7.
4.
According to Table 6, the TRI_STATE_ALL signal is controlled by GPIO 214.
After you have gathered all of this information, enter the following commands in Linux:
# echo 48 > /sys/class/gpio/export
# echo 255 > /sys/class/gpio/export
# echo 223 > /sys/class/gpio/export
# echo 214 > /sys/class/gpio/export
# echo high > /sys/class/gpio/gpio214/direction
# echo low > /sys/class/gpio/gpio255/direction
# echo high > /sys/class/gpio/gpio223/direction
# echo in > /sys/class/gpio/gpio48/direction
# echo low > /sys/class/gpio/gpio214/direction
You should be able to use IO7 as a GPIO input. For example:
# cat /sys/class/gpio/gpio48/value
Intel® Edison Kit for Arduino*
Hardware Guide
28
Shield pin configuration
December 2014
Document Number: 331191-004

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Edison Kit for Arduino and is the answer not in the manual?

Table of Contents