RALINK AP SDK 3.3.0.0 User's Manual
Page 59 of 93
RALINK_GPIO_SET - Set a value with corresponding bits on to the GPIO data. For example,
value 0x5 means GPIO data bit 0 and 2 will be set to 1, and the other bits will be
ignored.
RALINK_GPIO_CLEAR - Clear a value with corresponding bits off the GPIO data. For
example, value 0x5 means GPIO data bit 0 and 2 will clear to 0, and other bits will be
ignored.
RALINK_GPIO_READ_BIT - Read the corresponding bit from the GPIO data. For example,
bit 2 means read the third bit from GPIO data.
RALINK_GPIO_WRITE_BIT - Write a corresponding bit to the GPIO data. For example, bit 2
and value 1 mean to write value 1 to the third bit of GPIO data.
RALINK_GPIO_READ_BYTE - Read the corresponding byte from the GPIO data. For
example, byte 2 means to read the third byte from GPIO data.
RALINK_GPIO_WRITE_BYTE - Write a corresponding byte to the GPIO data. For example,
byte 2 and value 0x33 mean to write value 0x33 to the third byte of the GPIO data.
RALINK_GPIO_READ_INT - Same as RALINK_GPIO_READ.
RALINK_GPIO_WRITE_INT - Same as RALINK_GPIO_WRITE.
RALINK_GPIO_SET_INT - Same as RALINK_GPIO_SET.
RALINK_GPIO_CLEAR_INT - Same as RALINK_GPIO_CLEAR.
RALINK_GPIO_ENABLE_INTP - Enable GPIO input interrupt.
RALINK_GPIO_DISABLE_INT - Disable GPIO input interrupt.
RALINK_GPIO_REG_IRQ - Register to receive an interruption from a GPIO pin. When the GPIO
pin is interrupted, a signal SIGUSR1 or SIGUSR2 will be sent to the registered user process id.
SIGUSR1 is sent when the GPIO pin has been clicked once, and SIGUSR2 is send when the
GPIO pin has been pressed for several seconds.
11.8
Use GPIO to turn on LED
The following tables show the current GPIO definition for RT2880/RT3052/RT3883.