KEIS

Fork of lwip-eth by mbed official

Committer:
mbed_official
Date:
Fri Jun 22 09:32:29 2012 +0000
Revision:
0:f4db29eb9e47
Child:
1:0c9d93e2f51c
Initial import from NXP lwip_lpc: http://sw.lpcware.com/index.php?p=lwip_lpc.git&a=snapshot&h=7b84446afe97af955acad1d720696a0de73ab7cf&fmt=zip

Who changed what in which revision?

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