Gpio; Mii_Mgr - Ralink RT2880 User Manual

Ralink ap sdk 3.5.0.0 & demo board
Table of Contents

Advertisement

a. read: flash -r [offset(hex)] -c [num of bytes]
b. write: flash -w [offset(hex)] -o [value(hex)] -c [num of bytes]
c. erase: flash -f [first sector_num] -l [last sector_num
Example:
a. read: flash -r 370000 -c 4
b. write: flash -w 370000 -o 1234 -c 4
c. erase: flash -f 60 -l 61

8.1.4 GPIO

Description: GPIO test program
Usage: GPIO [r/w/i/l]
The name of the GPIO testing user application is "gpio".
gpio w: writing test (output)
gpio r: reading test (input)
gpio i (<gpio>): interrupt test for GPIO number
gpio l <gpio> <on> <off> <blinks> <rests> <times>: set led on <gpio>(0~24) on/off interval,
no. of blinking/resting cycles, blinking time
Pin sharing scheme
It is important to know what normal function pins are shared with the GPIO pins. Only one
normal function and GPIO can operate at the same time.
GPIOMODE: GPIO purpose select)
Configure the pins to use as GPIO.
PIODIR: programmed I/O direction
Configure the direction of all GPIO pins to use as GPIO.
an output is set as '1', and an input pin is set as '0'.
PIODATA: programmed I/O data
Write data for output GPIO pins, and read data for input GPIO pins. PIOSET, PIORESET,
PIOTOG are also used for adjusting GPIO data bits.
PIOINT, PIOEDGE, PIORENA, and PIOFMASK should be set when using GPIO pins for input
that causes an interruption.

8.1.5 MII_MGR

Description: mii register read/write test program
Usage:
a. get: mii_mgr -g -p [phy number] -r [register number]
RALINK AP SDK 3.3.0.0 User's Manual
Page 30 of 93

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rt3052Rt3883Rt3352

Table of Contents