Microchip® Advanced Software Framework

conf_eth.h File Reference

GMAC (Ethernet MAC) driver configuration.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include "gmac.h"

Macros

#define ETH_PHY_MODE   GMAC_PHY_RMII
 Ethernet MII/RMII mode. More...
 
#define ETHERNET_CONF_ETHADDR0   0x00
 MAC address definition. More...
 
#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. More...
 
#define ETHERNET_CONF_GATEWAY_ADDR1   168
 
#define ETHERNET_CONF_GATEWAY_ADDR2   0
 
#define ETHERNET_CONF_GATEWAY_ADDR3   250
 
#define ETHERNET_CONF_IPADDR0   192
 The IP address being used. More...
 
#define ETHERNET_CONF_IPADDR1   168
 
#define ETHERNET_CONF_IPADDR2   0
 
#define ETHERNET_CONF_IPADDR3   100
 
#define ETHERNET_CONF_NET_MASK0   255
 The network mask being used. More...
 
#define ETHERNET_CONF_NET_MASK1   255
 
#define ETHERNET_CONF_NET_MASK2   255
 
#define ETHERNET_CONF_NET_MASK3   0
 
#define GMAC_RX_BUFFERS   3
 Number of buffer for RX. More...
 
#define GMAC_TX_BUFFERS   3
 Number of buffer for TX. More...
 
#define LWIP_NETIF_TX_SINGLE_PBUF   1
 LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP tries to put all data to be sent into one single pbuf. More...
 
#define MAC_PHY_RETRY_MAX   1000000
 MAC PHY operation max retry count. More...
 

#define ETH_PHY_MODE   GMAC_PHY_RMII

Ethernet MII/RMII mode.

Referenced by ethernet_phy_auto_negotiate().

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

Referenced by ethernet_configure_interface().

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

The IP address being used.

Referenced by ethernet_configure_interface().

#define ETHERNET_CONF_IPADDR1   168
#define ETHERNET_CONF_IPADDR2   0
#define ETHERNET_CONF_IPADDR3   100
#define ETHERNET_CONF_NET_MASK0   255

The network mask being used.

Referenced by ethernet_configure_interface().

#define ETHERNET_CONF_NET_MASK1   255
#define ETHERNET_CONF_NET_MASK2   255
#define ETHERNET_CONF_NET_MASK3   0
#define GMAC_RX_BUFFERS   3

Number of buffer for RX.

Referenced by gmac_low_level_input(), gmac_rx_init(), and gmac_rx_populate_queue().

#define GMAC_TX_BUFFERS   3

Number of buffer for TX.

Referenced by gmac_low_level_output(), and gmac_tx_init().

#define LWIP_NETIF_TX_SINGLE_PBUF   1

LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP tries to put all data to be sent into one single pbuf.

This is for compatibility with DMA-enabled MACs that do not support scatter-gather.

#define MAC_PHY_RETRY_MAX   1000000

MAC PHY operation max retry count.

Referenced by gmac_phy_read(), and gmac_phy_write().