The <direcon> is an 8-bit hexadecimal value. Bits set to 1 in the <direcon> eld are set as
outputs. Otherwise the pin is used as an input. The second oponal value argument is used for
specifying how to drive the pins that are set as outputs. Note that seng the direcon to 0x
makes all pins outputs. The following is an example of how to use this command when logged in
over ssh:
sudo /opt/xilinx/bin/update_hw_gpio 0x3f 0xe7
This does the following:
•
<direcon> 0x3f sets pin 0 to 5 as outputs; 6 and 7 as inputs
•
<value> 0xef sets the output values: pin 0 = 1, pin 1 = 1, pin 2 = 1, pin 3 = 0, pin 4 = 0, pin 5 =
1
Chapter 8: GPIO Target Interface
UG1514 (v1.0) March 8, 2021 www.xilinx.com
SmartLynq Module+ 27