Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/include/gpio.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gpio_csreg

Defines

#define GPIO_BASE   0xb8000060
#define GPIO_DIR_IN   0x00
#define GPIO_DIR_OUT   0x01
#define GPIO0   0x01
#define GPIO1   0x02
#define GPIO2   0x04
#define GPIO3   0x08
#define GPIO4   0x10
#define GPIO5   0x20
#define GPIO6   0x40
#define GPIO7   0x80
#define GPIO_PIN_COUNT   8
#define GPIO_LED_WLAN   GPIO0
#define GPIO_LED_POWER   GPIO1
#define GPIO_LED_CISCOWHT   GPIO2
#define GPIO_LED_CISCOONG   GPIO3
#define GPIO_LED_DMZ   GPIO7
#define GPIO_CTRL_LED_ON(n)
#define GPIO_CTRL_LED_OFF(n)   ((struct gpio_csreg *)GPIO_BASE)->enable &= ~n
#define GPIO_BUT_CISCO   GPIO4
#define GPIO_BUT_RESET   GPIO6


Detailed Description

Id
gpio.h 224 2007-07-11 21:42:09Z mschul

Definition in file gpio.h.


Define Documentation

#define GPIO0   0x01

Definition at line 28 of file gpio.h.

#define GPIO1   0x02

Definition at line 29 of file gpio.h.

Referenced by xsh_led().

#define GPIO2   0x04

Definition at line 30 of file gpio.h.

#define GPIO3   0x08

Definition at line 31 of file gpio.h.

#define GPIO4   0x10

Definition at line 32 of file gpio.h.

#define GPIO5   0x20

Definition at line 33 of file gpio.h.

#define GPIO6   0x40

Definition at line 34 of file gpio.h.

#define GPIO7   0x80

Definition at line 35 of file gpio.h.

#define GPIO_BASE   0xb8000060

Definition at line 11 of file gpio.h.

Referenced by xsh_gpiostat(), and xsh_reset().

#define GPIO_BUT_CISCO   GPIO4

Front Cisco button

Definition at line 53 of file gpio.h.

#define GPIO_BUT_RESET   GPIO6

Back reset button

Definition at line 54 of file gpio.h.

Referenced by xsh_reset().

#define GPIO_CTRL_LED_OFF (  )     ((struct gpio_csreg *)GPIO_BASE)->enable &= ~n

Definition at line 50 of file gpio.h.

Referenced by xdone(), and xsh_led().

#define GPIO_CTRL_LED_ON (  ) 

Value:

((struct gpio_csreg *)GPIO_BASE)->enable |= n; \
                                                        ((struct gpio_csreg *)GPIO_BASE)->output &= ~n

Definition at line 47 of file gpio.h.

Referenced by sysinit(), and xsh_led().

#define GPIO_DIR_IN   0x00

set pin for input

Definition at line 24 of file gpio.h.

#define GPIO_DIR_OUT   0x01

set pin for output

Definition at line 25 of file gpio.h.

#define GPIO_LED_CISCOONG   GPIO3

Orange Cisco LED

Definition at line 43 of file gpio.h.

Referenced by xsh_led().

#define GPIO_LED_CISCOWHT   GPIO2

White Cisco LED

Definition at line 42 of file gpio.h.

Referenced by sysinit(), xdone(), and xsh_led().

#define GPIO_LED_DMZ   GPIO7

DMZ LED

Definition at line 44 of file gpio.h.

Referenced by xsh_led().

#define GPIO_LED_POWER   GPIO1

Power LED (also hardware controlled)

Definition at line 41 of file gpio.h.

#define GPIO_LED_WLAN   GPIO0

WLAN LED

Definition at line 40 of file gpio.h.

Referenced by xsh_led().

#define GPIO_PIN_COUNT   8

Definition at line 37 of file gpio.h.

Referenced by xsh_gpiostat().


Generated on Thu Oct 9 22:34:33 2008 for xinu by  doxygen 1.5.5