Atmel Software Framework

thirdparty/hd/example/ports/avr32/conf/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_RMII_INTERFACE   1
 

#define ETHERNET_CONF_AN_ENABLE   1

Use Auto negotiation to get speed and duplex

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

Referenced by prv_v_set_default_macaddr(), and prvEthernetConfigureInterface().

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

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

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

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

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

Referenced by prvSetupDescriptors(), ulMACBInputLength(), vMACBRead(), and vResetMacbRxFrames().

#define ETHERNET_CONF_NB_TX_BUFFERS   10

Number of Transmit buffers

Referenced by lMACBSend(), prvSetupDescriptors(), and vClearMACBTxBuffer().

#define ETHERNET_CONF_NET_MASK0   255

The network mask being used.

Referenced by prv_v_set_default_netconfig(), and prvEthernetConfigureInterface().

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

Referenced by lMACBSend(), and prvSetupDescriptors().

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