gpio-rp1
QNX Board Support Packages8.0BSP User's GuideRaspberry Pi 5raspberrypi.orgBroadcomARM
GPIO utility for Raspberry Pi5 RP1
Syntax:
gpio-rp1 [get|set] [gpio number] [options]
Runs on:
QNX OS
Options:
GPIO is a comma-separated list of pin numbers or ranges (without spaces),
e.g. 4 or 18-21 or 7,9-11.
Valid [options] for gpio-rp1 set are:
ip set GPIO as input
op set GPIO as output
a0-a8 set GPIO to alternate function alt0-alt8
no set GPIO to no function (NONE)
pu set GPIO pad to "pull up"
pd set GPIO pad to "pull down"
pn set GPIO pad to "pull none"
dh set GPIO to drive high (1) level (only valid if set to be an output)
dl set GPIO to drive low (0) level (only valid if set to be an output)
Examples:
gpio-rp1 get Prints state of all GPIOs one per line
gpio-rp1 get 20 Prints state of GPIO20
gpio-rp1 get 20,21 Prints state of GPIO20 and GPIO21
gpio-rp1 get 20-25 Prints state of GPIO20 to GPIO25
gpio-rp1 set 20 a4 Set GPIO20 to ALT4 function (I2S1_SDI0)
gpio-rp1 set 20 pu Enable GPIO20 in-pad pull up
gpio-rp1 set 20 pd Enable GPIO20 in-pad pull down
gpio-rp1 set 20 op Set GPIO20 to be an output
gpio-rp1 set 20 dl Set GPIO20 to output low/zero (must already be set as an output)
gpio-rp1 set 20 ip pd Set GPIO20 to input with pull down
gpio-rp1 set 35 a0 pu Set GPIO35 to ALT0 function (SPI8_CE1) with pull up
gpio-rp1 set 20 op pn dh Set GPIO20 to output with no pull and driving high
Page updated:
