OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [lwIP_AVR32_UC3/] [conf_eth.h] - Blame information for rev 712

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 583 jeremybenn
/*This file is prepared for Doxygen automatic documentation generation.*/
2
/*! \file ******************************************************************
3
 *
4
 * \brief Ethernet module configuration file.
5
 *
6
 * This file contains the possible external configuration of the Ethernet module.
7
 *
8
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
9
 * - Supported devices:  All AVR32 devices can be used.
10
 * - AppNote:
11
 *
12
 * \author               Atmel Corporation: http://www.atmel.com \n
13
 *                       Support and FAQ: http://support.atmel.no/
14
 *
15
 ***************************************************************************/
16
 
17
/* Copyright (c) 2007, Atmel Corporation All rights reserved.
18
 *
19
 * Redistribution and use in source and binary forms, with or without
20
 * modification, are permitted provided that the following conditions are met:
21
 *
22
 * 1. Redistributions of source code must retain the above copyright notice,
23
 * this list of conditions and the following disclaimer.
24
 *
25
 * 2. Redistributions in binary form must reproduce the above copyright notice,
26
 * this list of conditions and the following disclaimer in the documentation
27
 * and/or other materials provided with the distribution.
28
 *
29
 * 3. The name of ATMEL may not be used to endorse or promote products derived
30
 * from this software without specific prior written permission.
31
 *
32
 * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
33
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
34
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
35
 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
36
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
37
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
39
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
41
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
 */
43
 
44
 
45
#ifndef _CONF_ETH_H_
46
#define _CONF_ETH_H_
47
 
48
/*! define stack size for WEB server task */
49
#define lwipBASIC_WEB_SERVER_STACK_SIZE   256
50
 
51
/*! define stack size for TFTP server task */
52
#define lwipBASIC_TFTP_SERVER_STACK_SIZE  1024
53
 
54
/*! define stack size for SMTP Client task */
55
#define lwipBASIC_SMTP_CLIENT_STACK_SIZE  256
56
 
57
/*! define stack size for lwIP task */
58
#define lwipINTERFACE_STACK_SIZE          512
59
 
60
/*! define stack size for netif task */
61
#define netifINTERFACE_TASK_STACK_SIZE    256
62
 
63
/*! define WEB server priority */
64
#define ethWEBSERVER_PRIORITY             ( tskIDLE_PRIORITY + 2 )
65
 
66
/*! define TFTP server priority */
67
#define ethTFTPSERVER_PRIORITY            ( tskIDLE_PRIORITY + 3 )
68
 
69
/*! define SMTP Client priority */
70
#define ethSMTPCLIENT_PRIORITY            ( tskIDLE_PRIORITY + 5 )
71
 
72
/*! define lwIP task priority */
73
#define lwipINTERFACE_TASK_PRIORITY       ( configMAX_PRIORITIES - 1 )
74
 
75
/*! define netif task priority */
76
#define netifINTERFACE_TASK_PRIORITY      ( configMAX_PRIORITIES - 1 )
77
 
78
/*! Number of threads that can be started with sys_thread_new() */
79
#define SYS_THREAD_MAX                      6
80
 
81
/*! LED used by the ethernet task, toggled on each activation */
82
#define webCONN_LED                         7
83
 
84
/*! Phy Address (set through strap options) */
85
#define ETHERNET_CONF_PHY_ADDR             0x01
86
#define ETHERNET_CONF_PHY_ID               0x20005C90
87
 
88
/*! Number of receive buffers */
89
#define ETHERNET_CONF_NB_RX_BUFFERS        20
90
 
91
/*! USE_RMII_INTERFACE must be defined as 1 to use an RMII interface, or 0
92
to use an MII interface. */
93
#define ETHERNET_CONF_USE_RMII_INTERFACE   1
94
 
95
/*! Number of Transmit buffers */
96
#define ETHERNET_CONF_NB_TX_BUFFERS        10
97
 
98
/*! Size of each Transmit buffer. */
99
#define ETHERNET_CONF_TX_BUFFER_SIZE       512
100
 
101
/*! Clock definition */
102
#define ETHERNET_CONF_SYSTEM_CLOCK         48000000
103
 
104
/*! Use Auto Negociation to get speed and duplex */
105
#define ETHERNET_CONF_AN_ENABLE                      1
106
 
107
/*! Do not use auto cross capability */
108
#define ETHERNET_CONF_AUTO_CROSS_ENABLE              0
109
/*! use direct cable */
110
#define ETHERNET_CONF_CROSSED_LINK                   0
111
 
112
 
113
/* ethernet default parameters */
114
/*! MAC address definition.  The MAC address must be unique on the network. */
115
#define ETHERNET_CONF_ETHADDR0                        0x00
116
#define ETHERNET_CONF_ETHADDR1                        0x04
117
#define ETHERNET_CONF_ETHADDR2                        0x25
118
#define ETHERNET_CONF_ETHADDR3                        0x40
119
#define ETHERNET_CONF_ETHADDR4                        0x40
120
#define ETHERNET_CONF_ETHADDR5                        0x40
121
 
122
/*! The IP address being used. */
123
#define ETHERNET_CONF_IPADDR0                         192
124
#define ETHERNET_CONF_IPADDR1                         168
125
#define ETHERNET_CONF_IPADDR2                         0
126
#define ETHERNET_CONF_IPADDR3                         2
127
 
128
/*! The gateway address being used. */
129
#define ETHERNET_CONF_GATEWAY_ADDR0                   192
130
#define ETHERNET_CONF_GATEWAY_ADDR1                   168
131
#define ETHERNET_CONF_GATEWAY_ADDR2                   0
132
#define ETHERNET_CONF_GATEWAY_ADDR3                   1
133
 
134
/*! The network mask being used. */
135
#define ETHERNET_CONF_NET_MASK0                       255
136
#define ETHERNET_CONF_NET_MASK1                       255
137
#define ETHERNET_CONF_NET_MASK2                       255
138
#define ETHERNET_CONF_NET_MASK3                       0
139
 
140
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.