?? at91sam9xeek.h
字號:
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support - ROUSSET - * ---------------------------------------------------------------------------- * Copyright (c) 2007, Atmel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. * * - Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the disclaimer below in the documentation and/or * other materials provided with the distribution. * * Atmel's name may not be used to endorse or promote products derived from * this software without specific prior written permission. * * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ---------------------------------------------------------------------------- * File Name : at91sam9xeek.h * Object : * Creation : NFe Feb 2nd 2007 *----------------------------------------------------------------------------- */#ifndef _AT91SAM9XEEK_H#define _AT91SAM9XEEK_H/* ******************************************************************* *//* PMC Settings *//* *//* The main oscillator is enabled as soon as possible in the c_startup *//* and MCK is switched on the main oscillator. *//* PLL initialization is done later in the hw_init() function *//* ******************************************************************* */#define MASTER_CLOCK (198656000/2)#define PLL_LOCK_TIMEOUT 1000000#define PLLA_SETTINGS 0x2060BF09#define PLLB_SETTINGS 0x10483F0E/* Switch MCK on PLLA output PCK = PLLA = 2 * MCK */#define MCKR_SETTINGS (AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2)/* ******************************************************************* *//* DataFlash Settings *//* *//* ******************************************************************* */#define AT91C_BASE_SPI AT91C_BASE_SPI0#define AT91C_ID_SPI AT91C_ID_SPI0/* SPI CLOCK */#define AT91C_SPI_CLK 33000000/* AC characteristics *//* DLYBS = tCSS= 250ns min and DLYBCT = tCSH = 250ns */#define DATAFLASH_TCSS (0x1a << 16) /* 250ns min (tCSS) <=> 12/48000000 = 250ns */#define DATAFLASH_TCHS (0x1 << 24) /* 250ns min (tCSH) <=> (64*1+SCBR)/(2*48000000) */#define DF_CS_SETTINGS (AT91C_SPI_NCPHA | (AT91C_SPI_DLYBS & DATAFLASH_TCSS) | (AT91C_SPI_DLYBCT & DATAFLASH_TCHS) | ((MASTER_CLOCK / AT91C_SPI_CLK) << 8))/* ******************************************************************* *//* BootStrap Settings *//* *//* ******************************************************************* */#define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */#define IMG_ADDRESS 0x8000 /* Image Address in DataFlash */#define IMG_SIZE 0x30000 /* Image Size in DataFlash */#define MACH_TYPE 0x44B /* AT91SAM9XE-EK same id as AT91SAM9260-EK*/#define JUMP_ADDR 0x23F00000 /* Final Jump Address *//* ******************************************************************* *//* Application Settings *//* ******************************************************************* */#undef CFG_DEBUG#define CFG_DATAFLASH#define CFG_SDRAM#define CFG_HW_INIT#endif /* _AT91SAM9XEEK_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -