at32stk1000.h

Go to the documentation of this file.
00001 /* Copyright (c) 2006, Atmel Corporation All rights reserved.
00002  *
00003  * Redistribution and use in source and binary forms, with or without
00004  * modification, are permitted provided that the following conditions are met:
00005  *
00006  * 1. Redistributions of source code must retain the above copyright notice,
00007  * this list of conditions and the following disclaimer.
00008  *
00009  * 2. Redistributions in binary form must reproduce the above copyright notice,
00010  * this list of conditions and the following disclaimer in the documentation
00011  * and/or other materials provided with the distribution.
00012  *
00013  * 3. The name of ATMEL may not be used to endorse or promote products derived
00014  * from this software without specific prior written permission.
00015  *
00016  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00017  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00018  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00019  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00020  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00021  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00022  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00023  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00024  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00025  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  */
00027 #ifndef _at32stk1000_h_
00028 #define _at32stk1000_h_
00029 
00030 #include <avr32/io.h>
00031 #include "sdram.h"
00032 #include "usart.h"
00033 #include "pm.h"
00034 #include "pio.h"
00035 #include "errno.h"
00036 #include "utils.h"
00037 
00038 #define CPU_FAMILY      "AVR32_AP"
00039 #define CPU_TYPE        "AT32AP7000"
00040 #define MAX_FREQ        150000000
00041 
00042 #define DEFAULT_FREQ    OSC0_FREQ
00043 #define DEFAULT_UART    UART_A
00044 
00045 /* Define the on-board oscillators in Hz */
00046 #define OSC0_FREQ       20000000
00047 #define OSC1_FREQ       12000000
00048 
00049 /* Define the on-board memory sizes */
00050 #define SDRAM_SIZE      8
00051 
00052 /* Define the peripheral names */
00053 #define UART_A  AVR32_USART1
00054 #define UART_C  AVR32_USART3
00055 #define IRDA    AVR32_USART2
00056 
00057 
00058 static const struct sdram_info sdram = {
00059         .phys_addr      = AVR32_EBI1_ADDRESS,
00060         .bus_width      = 32,
00061         .rows           = 11,
00062         .cols           = 8,
00063         .banks          = 2,
00064         .cas            = 3,
00065         .twr            = 2,
00066         .trc            = 7,
00067         .trp            = 2,
00068         .trcd           = 2,
00069         .tras           = 5,
00070         .txsr           = 5,
00071 };
00072 
00073 
00074 int board_init( void );
00075 
00076 #endif
00077 

Generated on Wed May 7 16:03:16 2008 for AVR32114 Using the AVR32 LCD Controller by  doxygen 1.5.3-20071008