Atmel Software Framework

avr32/applications/evk1100-control-panel/conf_eth.h File Reference

Macros

#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   0x1C
 
#define ETHERNET_CONF_ETHADDR4   0xA0
 
#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_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 ETHERNET_CONF_AN_ENABLE   1

Allow Auto negotiation

#define ETHERNET_CONF_AUTO_CROSS_ENABLE   1

Use auto cross capability. Used by default.

#define ETHERNET_CONF_CROSSED_LINK   0

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

#define ETHERNET_CONF_ETHADDR0   0x00

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

#define ETHERNET_CONF_ETHADDR1   0x04
#define ETHERNET_CONF_ETHADDR2   0x25
#define ETHERNET_CONF_ETHADDR3   0x1C
#define ETHERNET_CONF_ETHADDR4   0xA0
#define ETHERNET_CONF_ETHADDR5   0x02
#define ETHERNET_CONF_GATEWAY_ADDR0   192

The gateway address being used.

#define ETHERNET_CONF_GATEWAY_ADDR1   168
#define ETHERNET_CONF_GATEWAY_ADDR2   0
#define ETHERNET_CONF_GATEWAY_ADDR3   1
#define ETHERNET_CONF_IPADDR0   192

The IP address being used.

#define ETHERNET_CONF_IPADDR1   168
#define ETHERNET_CONF_IPADDR2   0
#define ETHERNET_CONF_IPADDR3   2
#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.

#define ETHERNET_CONF_NB_TX_BUFFERS   10

Number of Transmit buffers

#define ETHERNET_CONF_NET_MASK0   255

The network mask being used.

#define ETHERNET_CONF_NET_MASK1   255
#define ETHERNET_CONF_NET_MASK2   255
#define ETHERNET_CONF_NET_MASK3   0
#define ETHERNET_CONF_SYSTEM_CLOCK   60000000

Clock definition

#define ETHERNET_CONF_TX_BUFFER_SIZE   512

Size of each Transmit buffer.

#define ETHERNET_CONF_USE_PHY_IT   0

set to 1 if Phy status changes handle an interrupt

#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.

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

location of net config file on the file system

Referenced by e_ethernet_cmd_set_config(), and prvEthernetConfigureInterface().