Updated AVR32 demos and added AVR32 UC3B demo.

This commit is contained in:
Richard Barry 2007-07-27 07:59:50 +00:00
parent 45e7e5ac55
commit 94c94d3c0e
164 changed files with 21458 additions and 3994 deletions

View file

@ -1,5 +1,3 @@
/* This header file is part of the ATMEL FREERTOS-0.9.0 Release */
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file ******************************************************************
*
@ -12,7 +10,7 @@
* - AppNote:
*
* \author Atmel Corporation: http://www.atmel.com \n
* Support email: avr32@atmel.com
* Support and FAQ: http://support.atmel.no/
*
***************************************************************************/
@ -53,8 +51,8 @@
/*! define stack size for TFTP server task */
#define lwipBASIC_TFTP_SERVER_STACK_SIZE 1024
/*! define stack size for SMTP host task */
#define lwipBASIC_SMTP_HOST_STACK_SIZE 256
/*! define stack size for SMTP Client task */
#define lwipBASIC_SMTP_CLIENT_STACK_SIZE 256
/*! define stack size for lwIP task */
#define lwipINTERFACE_STACK_SIZE 512
@ -68,8 +66,8 @@
/*! define TFTP server priority */
#define ethTFTPSERVER_PRIORITY ( tskIDLE_PRIORITY + 3 )
/*! define SMTP host priority */
#define ethSMTPHOST_PRIORITY ( tskIDLE_PRIORITY + 5 )
/*! define SMTP Client priority */
#define ethSMTPCLIENT_PRIORITY ( tskIDLE_PRIORITY + 5 )
/*! define lwIP task priority */
#define lwipINTERFACE_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
@ -83,6 +81,26 @@
/*! LED used by the ethernet task, toggled on each activation */
#define webCONN_LED 7
/*! Phy Address (set through strap options) */
#define ETHERNET_CONF_PHY_ADDR 0x01
#define ETHERNET_CONF_PHY_ID 0x20005C90
/*! Number of receive buffers */
#define ETHERNET_CONF_NB_RX_BUFFERS 20
/*! USE_RMII_INTERFACE must be defined as 1 to use an RMII interface, or 0
to use an MII interface. */
#define ETHERNET_CONF_USE_RMII_INTERFACE 1
/*! Number of Transmit buffers */
#define ETHERNET_CONF_NB_TX_BUFFERS 10
/*! Size of each Transmit buffer. */
#define ETHERNET_CONF_TX_BUFFER_SIZE 512
/*! Clock definition */
#define ETHERNET_CONF_SYSTEM_CLOCK 48000000
/*! Use Auto Negociation to get speed and duplex */
#define ETHERNET_CONF_AN_ENABLE 1
@ -94,50 +112,29 @@
/* ethernet default parameters */
/*! MAC address definition. The MAC address must be unique on the network. */
#define emacETHADDR0 0x00
#define emacETHADDR1 0x04
#define emacETHADDR2 0x25
#define emacETHADDR3 0x40
#define emacETHADDR4 0x40
#define emacETHADDR5 0x40
#define ETHERNET_CONF_ETHADDR0 0x00
#define ETHERNET_CONF_ETHADDR1 0x04
#define ETHERNET_CONF_ETHADDR2 0x25
#define ETHERNET_CONF_ETHADDR3 0x40
#define ETHERNET_CONF_ETHADDR4 0x40
#define ETHERNET_CONF_ETHADDR5 0x40
#if 0
/*! The IP address being used. */
#define emacIPADDR0 10
#define emacIPADDR1 172
#define emacIPADDR2 214
#define emacIPADDR3 40
#define ETHERNET_CONF_IPADDR0 192
#define ETHERNET_CONF_IPADDR1 168
#define ETHERNET_CONF_IPADDR2 0
#define ETHERNET_CONF_IPADDR3 2
/*! The gateway address being used. */
#define emacGATEWAY_ADDR0 10
#define emacGATEWAY_ADDR1 172
#define emacGATEWAY_ADDR2 250
#define emacGATEWAY_ADDR3 1
#define ETHERNET_CONF_GATEWAY_ADDR0 192
#define ETHERNET_CONF_GATEWAY_ADDR1 168
#define ETHERNET_CONF_GATEWAY_ADDR2 0
#define ETHERNET_CONF_GATEWAY_ADDR3 1
/*! The network mask being used. */
#define emacNET_MASK0 255
#define emacNET_MASK1 255
#define emacNET_MASK2 0
#define emacNET_MASK3 0
#else
/*! The IP address being used. */
#define emacIPADDR0 192
#define emacIPADDR1 168
#define emacIPADDR2 0
#define emacIPADDR3 2
/*! The gateway address being used. */
#define emacGATEWAY_ADDR0 192
#define emacGATEWAY_ADDR1 168
#define emacGATEWAY_ADDR2 0
#define emacGATEWAY_ADDR3 1
/*! The network mask being used. */
#define emacNET_MASK0 255
#define emacNET_MASK1 255
#define emacNET_MASK2 255
#define emacNET_MASK3 0
#endif
#define ETHERNET_CONF_NET_MASK0 255
#define ETHERNET_CONF_NET_MASK1 255
#define ETHERNET_CONF_NET_MASK2 255
#define ETHERNET_CONF_NET_MASK3 0
#endif