Mistake on this page?
Report an issue in GitHub or email us
lpc_emac_config.h
Go to the documentation of this file.
1 /**********************************************************************
2 * $Id$ lpc_emac_config.h 2011-11-20
3 *//**
4 * @file lpc_emac_config.h
5 * @brief PHY and EMAC configuration file
6 * @version 1.0
7 * @date 20 Nov. 2011
8 * @author NXP MCU SW Application Team
9 *
10 * Copyright(C) 2011, NXP Semiconductor
11 * All rights reserved.
12 *
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 **********************************************************************/
25 
26 #ifndef __LPC_EMAC_CONFIG_H
27 #define __LPC_EMAC_CONFIG_H
28 
29 #define LPC17_ETH_IF_NAME "lpc"
30 #define LPC17_ETH_HWADDR_SIZE 6
31 
32 #define DEFAULT_THREAD_STACKSIZE 512
33 
34 /** @defgroup lwip_phy_config PHY configuration
35  * @ingroup lwip_phy
36  *
37  * Configuration options for the PHY connected to the LPC EMAC.
38  * @{
39  */
40 
41 /** \brief The PHY address connected the to MII/RMII
42  */
43 #define LPC_PHYDEF_PHYADDR 1 /**< The PHY address on the PHY device. */
44 
45 /** \brief Enable autonegotiation mode.
46  * If this is enabled, the PHY will attempt to auto-negotiate the
47  * best link mode if the PHY supports it. If this is not enabled,
48  * the PHY_USE_FULL_DUPLEX and PHY_USE_100MBS defines will be
49  * used to select the link mode. Note that auto-negotiation may
50  * take a few seconds to complete.
51  */
52 #define PHY_USE_AUTONEG 1 /**< Enables auto-negotiation mode. */
53 
54 /** \brief Sets up the PHY interface to either full duplex operation or
55  * half duplex operation if PHY_USE_AUTONEG is not enabled.
56  */
57 #define PHY_USE_FULL_DUPLEX 1 /**< Sets duplex mode to full. */
58 
59 /** \brief Sets up the PHY interface to either 100MBS operation or 10MBS
60  * operation if PHY_USE_AUTONEG is not enabled.
61  */
62 #define PHY_USE_100MBS 1 /**< Sets data rate to 100Mbps. */
63 
64 /**
65  * @}
66  */
67 
68 /** @defgroup emac_config EMAC configuration
69  *
70  * Configuration options for the LPC EMAC.
71  * @{
72  */
73 
74 /** \brief Selects RMII or MII connection type in the EMAC peripheral
75  */
76 #define LPC_EMAC_RMII 1 /**< Use the RMII or MII driver variant .*/
77 
78 /** \brief Defines the number of descriptors used for RX. This
79  * must be a minimum value of 2.
80  */
81 #define LPC_NUM_BUFF_RXDESCS 4
82 
83 /** \brief Defines the number of descriptors used for TX. Must
84  * be a minimum value of 2.
85  */
86 #define LPC_NUM_BUFF_TXDESCS 9
87 
88 /** \brief Set this define to 1 to enable bounce buffers for transmit memory
89  * buffers that cannot be sent via the zero-copy method. Some chained
90  * buffers may have a payload address that links to an area of memory that
91  * cannot be used for transmit DMA operations. If this define is
92  * set to 1, an extra check will be made with the buffers. If a buffer
93  * is determined to be non-usable for zero-copy, a temporary bounce
94  * buffer will be created and used instead.
95  */
96 #define LPC_TX_PBUF_BOUNCE_EN 1
97 
98 /**
99  * @}
100  */
101 
102 #endif /* __LPC_EMAC_CONFIG_H */
103 
104 /* --------------------------------- End Of File ------------------------------ */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.