fdsf

Dependents:   sisk_proj_stat MQTT Hello_FXOS8700Q WireFSHandControl ... more

Committer:
grzemich
Date:
Wed Dec 07 23:47:50 2016 +0000
Revision:
0:d7bd7384a37c
dgd

Who changed what in which revision?

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