Product specifications
54
Table 21 GPIO General Commands
Command
Description
configuration reset to default.
SHOW GPIO DIRM <bit-mask>
Shows all direction control bits
Example:
Local> set gpio dirm 01
Local> show gpio dirm
GPIO direction mask=01
SET GPIO SPECIAL [EN | DIS]
Sets a single special function control bit. This command
enables or disables the special function of the GPIO signal
specified. <gpio-num> must be in the range of 1-8. The
special functions are as follows:
GPIO_1 (no special function)
GPIO_2 (SPI CS for LCD display)
GPIO_3 TSPICS (enables SPI temperature)
GPIO_4 DTR0 (Serial Port 1 DTR output)
GPIO_5 DSR0 (Serial Port 1 DSR input)
GPIO_6 DCD0 (Serial Port 1 DCD input)
GPIO_7 GRN (network status LED)
GPIO_8 YEL (network status LED)
NOTE: The special function bit configuration is not changed
by a configuration reset to default.
SHOW GPIO SPECIAL
Shows the current setting of the GPIO special function
configuration.
Example:
Local> show gpio special
GPIO Special Functions
-----------------------
GPIO #1 is special
GPIO #2 is normal
GPIO #3 is special
GPIO #4 is special
GPIO #5 is special
GPIO #6 is special
GPIO #7 is special
GPIO #8 is special
Local> set gpio special disable 1
Local> set gpio special enable 2
Local> show gpio special
GPIO Special Functions
-----------------------