Donatien Garnier / LwIPNetworking

Dependencies:   DebugLib Socket lwip lwip-sys

Dependents:   EthernetInterface

Fork of NetworkingCoreLib by Donatien Garnier

Committer:
donatien
Date:
Thu May 24 15:35:36 2012 +0000
Revision:
1:240e3322b87a
Parent:
0:013f5d54248c
+ Debug Lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 0:013f5d54248c 1 /**********************************************************************
donatien 0:013f5d54248c 2 * $Id$ lpc_emac_config.h 2011-11-20
donatien 0:013f5d54248c 3 *//**
donatien 0:013f5d54248c 4 * @file lpc_emac_config.h
donatien 0:013f5d54248c 5 * @brief PHY and EMAC configuration file
donatien 0:013f5d54248c 6 * @version 1.0
donatien 0:013f5d54248c 7 * @date 20 Nov. 2011
donatien 0:013f5d54248c 8 * @author NXP MCU SW Application Team
donatien 0:013f5d54248c 9 *
donatien 0:013f5d54248c 10 * Copyright(C) 2011, NXP Semiconductor
donatien 0:013f5d54248c 11 * All rights reserved.
donatien 0:013f5d54248c 12 *
donatien 0:013f5d54248c 13 ***********************************************************************
donatien 0:013f5d54248c 14 * Software that is described herein is for illustrative purposes only
donatien 0:013f5d54248c 15 * which provides customers with programming information regarding the
donatien 0:013f5d54248c 16 * products. This software is supplied "AS IS" without any warranties.
donatien 0:013f5d54248c 17 * NXP Semiconductors assumes no responsibility or liability for the
donatien 0:013f5d54248c 18 * use of the software, conveys no license or title under any patent,
donatien 0:013f5d54248c 19 * copyright, or mask work right to the product. NXP Semiconductors
donatien 0:013f5d54248c 20 * reserves the right to make changes in the software without
donatien 0:013f5d54248c 21 * notification. NXP Semiconductors also make no representation or
donatien 0:013f5d54248c 22 * warranty that such application will be suitable for the specified
donatien 0:013f5d54248c 23 * use without further testing or modification.
donatien 0:013f5d54248c 24 **********************************************************************/
donatien 0:013f5d54248c 25
donatien 0:013f5d54248c 26 #ifndef __LPC_EMAC_CONFIG_H
donatien 0:013f5d54248c 27 #define __LPC_EMAC_CONFIG_H
donatien 0:013f5d54248c 28
donatien 0:013f5d54248c 29 #include "lwip/opt.h"
donatien 0:013f5d54248c 30
donatien 0:013f5d54248c 31 #ifdef __cplusplus
donatien 0:013f5d54248c 32 extern "C"
donatien 0:013f5d54248c 33 {
donatien 0:013f5d54248c 34 #endif
donatien 0:013f5d54248c 35
donatien 0:013f5d54248c 36 /** @defgroup lwip_phy_config LWIP PHY configuration
donatien 0:013f5d54248c 37 * @ingroup lwip_phy
donatien 0:013f5d54248c 38 *
donatien 0:013f5d54248c 39 * Configuration options for the PHY connected to the LPC EMAC.
donatien 0:013f5d54248c 40 * @{
donatien 0:013f5d54248c 41 */
donatien 0:013f5d54248c 42
donatien 0:013f5d54248c 43 /** \brief The PHY address connected the to MII/RMII
donatien 0:013f5d54248c 44 */
donatien 0:013f5d54248c 45 #define LPC_PHYDEF_PHYADDR 1 /**< The PHY address on the PHY device. */
donatien 0:013f5d54248c 46
donatien 0:013f5d54248c 47 /** \brief Enable autonegotiation mode.
donatien 0:013f5d54248c 48 * If this is enabled, the PHY will attempt to auto-negotiate the
donatien 0:013f5d54248c 49 * best link mode if the PHY supports it. If this is not enabled,
donatien 0:013f5d54248c 50 * the PHY_USE_FULL_DUPLEX and PHY_USE_100MBS defines will be
donatien 0:013f5d54248c 51 * used to select the link mode. Note that auto-negotiation may
donatien 0:013f5d54248c 52 * take a few seconds to complete.
donatien 0:013f5d54248c 53 */
donatien 0:013f5d54248c 54 #define PHY_USE_AUTONEG 1 /**< Enables auto-negotiation mode. */
donatien 0:013f5d54248c 55
donatien 0:013f5d54248c 56 /** \brief Sets up the PHY interface to either full duplex operation or
donatien 0:013f5d54248c 57 * half duplex operation if PHY_USE_AUTONEG is not enabled.
donatien 0:013f5d54248c 58 */
donatien 0:013f5d54248c 59 #define PHY_USE_FULL_DUPLEX 1 /**< Sets duplex mode to full. */
donatien 0:013f5d54248c 60
donatien 0:013f5d54248c 61 /** \brief Sets up the PHY interface to either 100MBS operation or 10MBS
donatien 0:013f5d54248c 62 * operation if PHY_USE_AUTONEG is not enabled.
donatien 0:013f5d54248c 63 */
donatien 0:013f5d54248c 64 #define PHY_USE_100MBS 1 /**< Sets data rate to 100Mbps. */
donatien 0:013f5d54248c 65
donatien 0:013f5d54248c 66 /**
donatien 0:013f5d54248c 67 * @}
donatien 0:013f5d54248c 68 */
donatien 0:013f5d54248c 69
donatien 0:013f5d54248c 70 /** @defgroup lwip_emac_config LWIP EMAC configuration
donatien 0:013f5d54248c 71 * @ingroup lwip_emac
donatien 0:013f5d54248c 72 *
donatien 0:013f5d54248c 73 * Configuration options for the LPC EMAC.
donatien 0:013f5d54248c 74 * @{
donatien 0:013f5d54248c 75 */
donatien 0:013f5d54248c 76
donatien 0:013f5d54248c 77 /** \brief Selects RMII or MII connection type in the EMAC peripheral
donatien 0:013f5d54248c 78 */
donatien 0:013f5d54248c 79 #define LPC_EMAC_RMII 1 /**< Use the RMII or MII driver variant .*/
donatien 0:013f5d54248c 80
donatien 0:013f5d54248c 81 /** \brief Defines the number of descriptors used for RX. This
donatien 0:013f5d54248c 82 * must be a minimum value of 2.
donatien 0:013f5d54248c 83 */
donatien 0:013f5d54248c 84 #define LPC_NUM_BUFF_RXDESCS 3
donatien 0:013f5d54248c 85
donatien 0:013f5d54248c 86 /** \brief Defines the number of descriptors used for TX. Must
donatien 0:013f5d54248c 87 * be a minimum value of 2.
donatien 0:013f5d54248c 88 */
donatien 0:013f5d54248c 89 #define LPC_NUM_BUFF_TXDESCS 2
donatien 0:013f5d54248c 90
donatien 0:013f5d54248c 91 /** \brief Set this define to 1 to enable bounce buffers for transmit pbufs
donatien 0:013f5d54248c 92 * that cannot be sent via the zero-copy method. Some chained pbufs
donatien 0:013f5d54248c 93 * may have a payload address that links to an area of memory that
donatien 0:013f5d54248c 94 * cannot be used for transmit DMA operations. If this define is
donatien 0:013f5d54248c 95 * set to 1, an extra check will be made with the pbufs. If a buffer
donatien 0:013f5d54248c 96 * is determined to be non-usable for zero-copy, a temporary bounce
donatien 0:013f5d54248c 97 * buffer will be created and used instead.
donatien 0:013f5d54248c 98 */
donatien 0:013f5d54248c 99 #define LPC_TX_PBUF_BOUNCE_EN 1
donatien 0:013f5d54248c 100
donatien 0:013f5d54248c 101 /**
donatien 0:013f5d54248c 102 * @}
donatien 0:013f5d54248c 103 */
donatien 0:013f5d54248c 104
donatien 0:013f5d54248c 105 #ifdef __cplusplus
donatien 0:013f5d54248c 106 }
donatien 0:013f5d54248c 107 #endif
donatien 0:013f5d54248c 108
donatien 0:013f5d54248c 109 #endif /* __LPC_EMAC_CONFIG_H */
donatien 0:013f5d54248c 110
donatien 0:013f5d54248c 111 /* --------------------------------- End Of File ------------------------------ */