How To Configure Gpio Ports - Ralink RT2880 User Manual

Ralink ap sdk 3.5.0.0 & demo board
Table of Contents

Advertisement

Note: If you need the LAN/WAN Ports to have different MAC addresses, adjust the Ethernet
driver to get GMAC0_ADDR for LAN, and GMAC1_ADDR for WAN.
Use the QA program to modify your flash content.

11.7 How to configure GPIO ports

$SDK/source/linux-2.4.x/drivers/char/ralink_gpio.c
$SDK/source/linux-2.4.x/drivers/char/ralink_gpio.h
RALINK_GPIO_SET_DIR - Configure the direction of the GPIO pins using bitmaps. Bit 1 is for
output, and bit 0 is for input. For example, value 0x5 is for configuring GPIO pin 0 and 2
as output pins, and the other pins as input pins.
RALINK_GPIO_SET_DIR_IN - Configure one or several GPIO pins as input pins using bitmaps.
For example, value 0x5 is for configuring GPIO pin 0 and 2 as input pins, and other pins
are ignored.
RALINK_GPIO_SET_DIR_OUT - Configure one or several GPIO pins as output pins using
bitmaps. For example, value 0x5 is for configuring GPIO pin 0 and 2 as output pins, and
other pins are ignored.
RALINK_GPIO_READ - Read the value from the GPIO data.
RALINK_GPIO_WRITE - Write a value to the GPIO data.
Figure 12 QA – Modify GMAC Mac address
Page 58 of 93
RALINK AP SDK 3.3.0.0 User's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rt3052Rt3883Rt3352

Table of Contents