conf_eth.h File Reference


Detailed Description

Ethernet module configuration file.

This file contains the possible external configuration of the Ethernet module.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file conf_eth.h.

Go to the source code of this file.

Defines

#define ETHERNET_CONF_AN_ENABLE   1
#define ETHERNET_CONF_AUTO_CROSS_ENABLE   1
#define ETHERNET_CONF_CROSSED_LINK   0
#define ETHERNET_CONF_ETHADDR0   0x00
#define ETHERNET_CONF_ETHADDR1   0x04
#define ETHERNET_CONF_ETHADDR2   0x25
#define ETHERNET_CONF_ETHADDR3   0x00
#define ETHERNET_CONF_ETHADDR4   0x01
#define ETHERNET_CONF_ETHADDR5   0x02
#define ETHERNET_CONF_GATEWAY_ADDR0   192
#define ETHERNET_CONF_GATEWAY_ADDR1   168
#define ETHERNET_CONF_GATEWAY_ADDR2   0
#define ETHERNET_CONF_GATEWAY_ADDR3   1
#define ETHERNET_CONF_IPADDR0   192
#define ETHERNET_CONF_IPADDR1   168
#define ETHERNET_CONF_IPADDR2   0
#define ETHERNET_CONF_IPADDR3   2
#define ETHERNET_CONF_NB_RX_BUFFERS   24
#define ETHERNET_CONF_NB_TX_BUFFERS   10
#define ETHERNET_CONF_NET_MASK0   255
#define ETHERNET_CONF_NET_MASK1   255
#define ETHERNET_CONF_NET_MASK2   255
#define ETHERNET_CONF_NET_MASK3   0
#define ETHERNET_CONF_PHY_ADDR   0x01
#define ETHERNET_CONF_PHY_ID   0x20005C90
#define ETHERNET_CONF_SYSTEM_CLOCK   60000000
#define ETHERNET_CONF_TX_BUFFER_SIZE   512
#define ETHERNET_CONF_USE_PHY_IT   0
#define ETHERNET_CONF_USE_RMII_INTERFACE   1
#define ETHERNET_CONFIG_FILE   "A:/CFG/net.txt"


Define Documentation

#define ETHERNET_CONF_AN_ENABLE   1

Allow Auto Negociation

Definition at line 77 of file conf_eth.h.

#define ETHERNET_CONF_AUTO_CROSS_ENABLE   1

Use auto cross capability. Used by default.

Definition at line 80 of file conf_eth.h.

#define ETHERNET_CONF_CROSSED_LINK   0

Use direct cable. Ignored when ETHERNET_CONF_AN_ENABLE and ETHERNET_CONF_AUTO_CROSS_ENABLE are enabled.

Definition at line 83 of file conf_eth.h.

#define ETHERNET_CONF_ETHADDR0   0x00

MAC address definition. The MAC address must be unique on the network.

Definition at line 87 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_ETHADDR1   0x04

Definition at line 88 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_ETHADDR2   0x25

Definition at line 89 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_ETHADDR3   0x00

Definition at line 90 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_ETHADDR4   0x01

Definition at line 91 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_ETHADDR5   0x02

Definition at line 92 of file conf_eth.h.

Referenced by prv_v_set_default_macaddr().

#define ETHERNET_CONF_GATEWAY_ADDR0   192

The gateway address being used.

Definition at line 101 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR1   168

Definition at line 102 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR2   0

Definition at line 103 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR3   1

Definition at line 104 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR0   192

The IP address being used.

Definition at line 95 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR1   168

Definition at line 96 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR2   0

Definition at line 97 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR3   2

Definition at line 98 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_NB_RX_BUFFERS   24

Number of receive buffers. Max ethernet frame size is 1526. A Rx buffer is 128 Bytes long. So 12 Rx buffers are necessary to store one max sized frame. Multiply that by 2 for performance.

Definition at line 61 of file conf_eth.h.

#define ETHERNET_CONF_NB_TX_BUFFERS   10

Number of Transmit buffers

Definition at line 68 of file conf_eth.h.

#define ETHERNET_CONF_NET_MASK0   255

The network mask being used.

Definition at line 107 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK1   255

Definition at line 108 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK2   255

Definition at line 109 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK3   0

Definition at line 110 of file conf_eth.h.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_PHY_ADDR   0x01

Phy Address (set through strap options)

Definition at line 55 of file conf_eth.h.

#define ETHERNET_CONF_PHY_ID   0x20005C90

Definition at line 56 of file conf_eth.h.

#define ETHERNET_CONF_SYSTEM_CLOCK   60000000

Clock definition

Definition at line 74 of file conf_eth.h.

#define ETHERNET_CONF_TX_BUFFER_SIZE   512

Size of each Transmit buffer.

Definition at line 71 of file conf_eth.h.

#define ETHERNET_CONF_USE_PHY_IT   0

set to 1 if Phy status changes handle an interrupt

Definition at line 113 of file conf_eth.h.

#define ETHERNET_CONF_USE_RMII_INTERFACE   1

USE_RMII_INTERFACE must be defined as 1 to use an RMII interface, or 0 to use an MII interface.

Definition at line 65 of file conf_eth.h.

#define ETHERNET_CONFIG_FILE   "A:/CFG/net.txt"

location of net config file on the file system

Definition at line 52 of file conf_eth.h.

Referenced by e_ethernet_cmd_set_config(), and prvEthernetConfigureInterface().


Generated on Fri Feb 19 02:22:43 2010 for AVR32 - Control Panel demonstration. by  doxygen 1.5.5