NXP LPC LWIP port documentation  v0.80
LWIP port for LPC devices
LWIP PHY configuration

Defines

#define LPC_PHY_LAN8720
 Enable the DP83848 PHY. Only 1 PHY type can be selected in a system. Comment out the define to remove the PHY. Uncomment to enable it.
#define LPC_PHYDEF_PHYADDR   1
 The PHY address connected the to MII/RMII.
#define PHY_USE_AUTONEG   1
 Enable autonegotiation mode. If this is enabled, the PHY will attempt to auto-negotiate the best link mode if the PHY supports it. If this is not enabled, the PHY_USE_FULL_DUPLEX and PHY_USE_100MBS defines will be used to select the link mode. Note that auto-negotiation may take a few seconds to complete.
#define PHY_USE_FULL_DUPLEX   1
 Sets up the PHY interface to either full duplex operation or half duplex operation if PHY_USE_AUTONEG is not enabled.
#define PHY_USE_100MBS   1
 Sets up the PHY interface to either 100MBS operation or 10MBS operation if PHY_USE_AUTONEG is not enabled.

Detailed Description

Configuration options for the PHY connected to the LPC EMAC.


Define Documentation

#define LPC_PHY_LAN8720

Enable the DP83848 PHY. Only 1 PHY type can be selected in a system. Comment out the define to remove the PHY. Uncomment to enable it.

Enable the LAN8720 PHY. Only 1 PHY type can be selected in a system. Comment out the define to remove the PHY. Uncomment to enable it. Enable this define to use the LAN8720 PHY driver.

#define LPC_PHYDEF_PHYADDR   1

The PHY address connected the to MII/RMII.

The PHY address on the PHY device.

#define PHY_USE_100MBS   1

Sets up the PHY interface to either 100MBS operation or 10MBS operation if PHY_USE_AUTONEG is not enabled.

Sets data rate to 100Mbps.

#define PHY_USE_AUTONEG   1

Enable autonegotiation mode. If this is enabled, the PHY will attempt to auto-negotiate the best link mode if the PHY supports it. If this is not enabled, the PHY_USE_FULL_DUPLEX and PHY_USE_100MBS defines will be used to select the link mode. Note that auto-negotiation may take a few seconds to complete.

Enables auto-negotiation mode.

#define PHY_USE_FULL_DUPLEX   1

Sets up the PHY interface to either full duplex operation or half duplex operation if PHY_USE_AUTONEG is not enabled.

Sets duplex mode to full.