# conf_eth.h File Reference

## Detailed Description

Ethernet module configuration file.

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

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All AVR32 devices can be used.
- AppNote:

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

Definition in file conf_eth.h.

`#include "lwipopts.h"`

Go to the source code of this file.

## Defines
#define | DNS_SERVER_NAME "yourdnsdomain.com"
#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 0x40
#define | ETHERNET_CONF_ETHADDR4 0x40
#define | ETHERNET_CONF_ETHADDR5 0x40
#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 48000000
#define | ETHERNET_CONF_TX_BUFFER_SIZE 512
#define | ETHERNET_CONF_USE_RMII_INTERFACE 1
#define | SSL_SERVER_NAME "192.168.0.1"
#define | SSL_SERVER_PORT 4433

## Define Documentation

#define DNS_SERVER_NAME "yourdnsdomain.com"

Definition at line 132 of file conf_eth.h.

#define ETHERNET_CONF_AN_ENABLE 1

Use Auto Negociation to get speed and duplex

Definition at line 76 of file conf_eth.h.

#define ETHERNET_CONF_AUTO_CROSS_ENABLE 1

Use auto cross capability. Used by default.

Definition at line 79 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 82 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 low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_ETHADDR1 0x04

Definition at line 88 of file conf_eth.h.

Referenced by low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_ETHADDR2 0x25

Definition at line 89 of file conf_eth.h.

Referenced by low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_ETHADDR3 0x40

Definition at line 90 of file conf_eth.h.

Referenced by low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_ETHADDR4 0x40

Definition at line 91 of file conf_eth.h.

Referenced by low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_ETHADDR5 0x40

Definition at line 92 of file conf_eth.h.

Referenced by low_level_init(), and prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR0 192

The gateway address being used.

Definition at line 108 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR1 168

Definition at line 109 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR2 0

Definition at line 110 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_GATEWAY_ADDR3 1

Definition at line 111 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR0 192

The IP address being used.

Definition at line 102 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR1 168

Definition at line 103 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR2 0

Definition at line 104 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_IPADDR3 2

Definition at line 105 of file conf_eth.h.

Referenced by 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 60 of file conf_eth.h.

#define ETHERNET_CONF_NB_TX_BUFFERS 10

Number of Transmit buffers

Definition at line 67 of file conf_eth.h.

#define ETHERNET_CONF_NET_MASK0 255

The network mask being used.

Definition at line 114 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK1 255

Definition at line 115 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK2 255

Definition at line 116 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_NET_MASK3 0

Definition at line 117 of file conf_eth.h.

Referenced by prvEthernetConfigureInterface().

#define ETHERNET_CONF_PHY_ADDR 0x01

Phy Address (set through strap options)

Definition at line 54 of file conf_eth.h.

#define ETHERNET_CONF_PHY_ID 0x20005C90

Definition at line 55 of file conf_eth.h.

#define ETHERNET_CONF_SYSTEM_CLOCK 48000000

Clock definition

Definition at line 73 of file conf_eth.h.

#define ETHERNET_CONF_TX_BUFFER_SIZE 512

Size of each Transmit buffer.

Definition at line 70 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 64 of file conf_eth.h.

#define SSL_SERVER_NAME "192.168.0.1"

Definition at line 128 of file conf_eth.h.

#define SSL_SERVER_PORT 4433

SSL SERVER configuration.

Definition at line 120 of file conf_eth.h.