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