Statistics
| Branch: | Tag: | Revision:

mongoose / examples / NXP_LPC4088 / LPCXpresso / Mongoose_LPC4088_QSB_BM / example / inc / lpc_17xx40xx_emac_config.h @ eaef5bd1

History | View | Annotate | Download (2.52 KB)

1
/* clang-format off */
2
/*
3
 * @brief LPC17xx/LPC40xx EMAC and PHY driver configuration file for LWIP
4
 *
5
 * @note
6
 * Copyright(C) NXP Semiconductors, 2012
7
 * All rights reserved.
8
 *
9
 * @par
10
 * Software that is described herein is for illustrative purposes only
11
 * which provides customers with programming information regarding the
12
 * LPC products.  This software is supplied "AS IS" without any warranties of
13
 * any kind, and NXP Semiconductors and its licensor disclaim any and
14
 * all warranties, express or implied, including all implied warranties of
15
 * merchantability, fitness for a particular purpose and non-infringement of
16
 * intellectual property rights.  NXP Semiconductors assumes no responsibility
17
 * or liability for the use of the software, conveys no license or rights under any
18
 * patent, copyright, mask work right, or any other intellectual property rights in
19
 * or to any products. NXP Semiconductors reserves the right to make changes
20
 * in the software without notification. NXP Semiconductors also makes no
21
 * representation or warranty that such application will be suitable for the
22
 * specified use without further testing or modification.
23
 *
24
 * @par
25
 * Permission to use, copy, modify, and distribute this software and its
26
 * documentation is hereby granted, under NXP Semiconductors' and its
27
 * licensor's relevant copyrights in the software, without fee, provided that it
28
 * is used in conjunction with NXP Semiconductors microcontrollers.  This
29
 * copyright, permission, and disclaimer notice must appear in all copies of
30
 * this code.
31
 */
32

    
33
#ifndef __LPC_17XX40XX_EMAC_CONFIG_H_
34
#define __LPC_17XX40XX_EMAC_CONFIG_H_
35

    
36
#include "lwip/opt.h"
37

    
38
#ifdef __cplusplus
39
extern "C"
40
{
41
#endif
42

    
43
/* The PHY address connected the to MII/RMII */
44
#define LPC_PHYDEF_PHYADDR 1
45

    
46
/* Autonegotiation mode enable flag */
47
#define PHY_USE_AUTONEG 1
48

    
49
/* PHY interface full duplex operation or half duplex enable flag.
50
   Only applies if PHY_USE_AUTONEG = 0 */
51
#define PHY_USE_FULL_DUPLEX 1
52

    
53
/* PHY interface 100MBS or 10MBS enable flag.
54
   Only applies if PHY_USE_AUTONEG = 0 */
55
#define PHY_USE_100MBS 1
56

    
57
/* Defines the number of descriptors used for RX */
58
#define LPC_NUM_BUFF_RXDESCS 4
59

    
60
/* Defines the number of descriptors used for TX */
61
#define LPC_NUM_BUFF_TXDESCS 4
62

    
63
/* Disable slow speed memory buffering */
64
#define LPC_CHECK_SLOWMEM 0
65

    
66
/* Array of slow memory address ranges for LPC_CHECK_SLOWMEM */
67
#define LPC_SLOWMEM_ARRAY
68

    
69
#ifdef __cplusplus
70
}
71
#endif
72

    
73
#endif /* __LPC_17XX40XX_EMAC_CONFIG_H_ */