]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h
1 /**********************************************************************
2 * $Id$ lpc_emac_config.h 2011-11-20
4 * @file lpc_emac_config.h
5 * @brief PHY and EMAC configuration file
8 * @author NXP MCU SW Application Team
10 * Copyright(C) 2011, NXP Semiconductor
11 * All rights reserved.
13 ***********************************************************************
14 * Software that is described herein is for illustrative purposes only
15 * which provides customers with programming information regarding the
16 * products. This software is supplied "AS IS" without any warranties.
17 * NXP Semiconductors assumes no responsibility or liability for the
18 * use of the software, conveys no license or title under any patent,
19 * copyright, or mask work right to the product. NXP Semiconductors
20 * reserves the right to make changes in the software without
21 * notification. NXP Semiconductors also make no representation or
22 * warranty that such application will be suitable for the specified
23 * use without further testing or modification.
24 **********************************************************************/
26 #ifndef __LPC_EMAC_CONFIG_H
27 #define __LPC_EMAC_CONFIG_H
36 /** @defgroup lwip_phy_config LWIP PHY configuration
39 * Configuration options for the PHY connected to the LPC EMAC.
43 /** \brief The PHY address connected the to MII/RMII
45 #define LPC_PHYDEF_PHYADDR 1 /**< The PHY address on the PHY device. */
47 /** \brief Enable autonegotiation mode.
48 * If this is enabled, the PHY will attempt to auto-negotiate the
49 * best link mode if the PHY supports it. If this is not enabled,
50 * the PHY_USE_FULL_DUPLEX and PHY_USE_100MBS defines will be
51 * used to select the link mode. Note that auto-negotiation may
52 * take a few seconds to complete.
54 #define PHY_USE_AUTONEG 1 /**< Enables auto-negotiation mode. */
56 /** \brief Sets up the PHY interface to either full duplex operation or
57 * half duplex operation if PHY_USE_AUTONEG is not enabled.
59 #define PHY_USE_FULL_DUPLEX 1 /**< Sets duplex mode to full. */
61 /** \brief Sets up the PHY interface to either 100MBS operation or 10MBS
62 * operation if PHY_USE_AUTONEG is not enabled.
64 #define PHY_USE_100MBS 1 /**< Sets data rate to 100Mbps. */
70 /** @defgroup lwip_emac_config LWIP EMAC configuration
73 * Configuration options for the LPC EMAC.
77 /** \brief Selects RMII or MII connection type in the EMAC peripheral
79 #define LPC_EMAC_RMII 1 /**< Use the RMII or MII driver variant .*/
81 /** \brief Defines the number of descriptors used for RX. This
82 * must be a minimum value of 2.
84 #define LPC_NUM_BUFF_RXDESCS 3
86 /** \brief Defines the number of descriptors used for TX. Must
87 * be a minimum value of 2.
89 #define LPC_NUM_BUFF_TXDESCS (TCP_SND_QUEUELEN + 1)
91 /** \brief Set this define to 1 to enable bounce buffers for transmit pbufs
92 * that cannot be sent via the zero-copy method. Some chained pbufs
93 * may have a payload address that links to an area of memory that
94 * cannot be used for transmit DMA operations. If this define is
95 * set to 1, an extra check will be made with the pbufs. If a buffer
96 * is determined to be non-usable for zero-copy, a temporary bounce
97 * buffer will be created and used instead.
99 #define LPC_TX_PBUF_BOUNCE_EN 1
109 #endif /* __LPC_EMAC_CONFIG_H */
111 /* --------------------------------- End Of File ------------------------------ */