⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eb63.h

📁 有关ATMEL AT91系列CPU的驱动函数库
💻 H
字号:
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : eb63.h
//* Object              : AT91M63200 Evaluation Board Features Definition File.
//*
//* 1.0 30/10/00 JPP    : Creation
//*----------------------------------------------------------------------------

#ifndef eb63_h
#define eb63_h

#include    "parts/m63200/m63200.h"      /* library definition */

/*---------------------------------------*/
/* AT91EB63 External Memories Definition */
/*---------------------------------------*/

/* Flash Memory : AT49BV1604 1M*16 */
#define FLASH_BASE      ((u_int *)0x01000000)
#define FLASH_SIZE      (2*1024*1024)               /* byte */

/* SRAM : size is depending on the devices fitted on the board */
#define EXT_SRAM_BASE   ((u_int *)0x02000000)
#define EXT_SRAM_SIZE   (256*1024)
#define EXT_SRAM_LIMIT  (EXT_SRAM_BASE+EXT_SRAM_SIZE)

/*---------------------------------------------------------------------------*/
/* EBI Initialization Data                                                   */
/*---------------------------------------------------------------------------*/
/* The EBI User Interface Image which is copied by the boot.                 */
/* 25 MHz master clock assumed.                                           */
/* That's hardware! Details in the Electrical Datasheet of the AT91 device.  */
/* EBI Base Address is added at the end for commodity in copy code.          */
/*---------------------------------------------------------------------------*/
#define EBI_CSR_0       ((u_int *)(FLASH_BASE | 0x2529)    /* 0x01000000, 16MB, 2 tdf, 16 bits, 2 WS  */
#define EBI_CSR_1       ((u_int *)(EXT_SRAM_BASE | 0x2121) /* 0x02000000, 16MB, 0 hold, 16 bits, 1 WS */
#define EBI_CSR_2       ((u_int *)0x20000000)       /* unused */
#define EBI_CSR_3       ((u_int *)0x30000000)       /* unused */
#define EBI_CSR_4       ((u_int *)0x40000000)       /* unused */
#define EBI_CSR_5       ((u_int *)0x50000000)       /* unused */
#define EBI_CSR_6       ((u_int *)0x60000000)       /* unused */
#define EBI_CSR_7       ((u_int *)0x70000000)       /* unused */

/*-----------------*/
/* Leds Definition */
/*-----------------*/

#define LED1            PB8            /* DS1 */
#define LED2            PB9            /* DS2 */
#define LED3            PB10           /* DS3 */
#define LED4            PB11           /* DS3 */
#define LED5            PB12           /* DS4 */
#define LED6            PB13           /* DS5 */
#define LED7            PB14           /* DS6 */
#define LED8            PB15           /* DS7 */

#define LED_PIO_CTRL    1
#define LED_MASK        0x0000FF00

#define LED_ON          PIO_CLEAR_OUT
#define LED_OFF         PIO_SET_OUT

/*-------------------------*/
/* Push Buttons Definition */
/*-------------------------*/

#define SW1_MASK        PB3
#define SW2_MASK        PB4
#define SW3_MASK        PB5
#define SW4_MASK        PA9
#define SW_MASK         (SW1_MASK|SW2_MASK|SW3_MASK)
#define PIO_SW1         3
#define PIO_SW2         4
#define PIO_SW3         5
#define PIO_SW4         9
#define SW1_PIO_CTRL    PIOB_CTRL
#define SW2_PIO_CTRL    PIOB_CTRL
#define SW3_PIO_CTRL    PIOB_CTRL
#define SW4_PIO_CTRL    PIOA_CTRL

/*----------------------*/
/* Shut Down Definition */
/*----------------------*/

#define SHDW            PA22
#define SHDW_PIO_CTRL   1

/*--------------------------*/
/* Serial EEPROM Definition */
/*--------------------------*/

#define SCL             PA20
#define SDA             PA21
#define PIO_SCL         20
#define PIO_SDA         21

/*--------------*/
/* Master Clock */
/*--------------*/

#define MCK             25000000
#define MCKKHz          (MCK/1000)
#define MCKMHz          (MCK/1000000)

#endif /* eb63_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -