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

📄 ebic.h

📁 ARM9200开发板的ROM boot程序源码1.0
💻 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           : ebic.h
//* Object              : External Bus Interface Header File
//*
//* 1.0 22/03/01 HI     : Creation
//*----------------------------------------------------------------------------

#ifndef ebic_h
#define ebic_h

#include    "periph/stdc/std_c.h"
#include    "periph/smc/smc.h"
#include    "periph/sdramc/sdramc.h"
#include    "periph/bfc/bfc.h"

/*------------------------------------------------------------*/
/* External Bus Interface User Interface Structure Definition */
/*------------------------------------------------------------*/

typedef struct _AT91S_EBIC
{
    at91_reg		EBIC_CSA ;                                             /* Chip Select Assignment */
    at91_reg		EBIC_CR ;                                              /* Configuration Register */
    at91_reg		Reserved0[2];					                       /* Reserved */
    AT91S_SMC		EBIC_SMC ;                                             /* SMC Configuration Registers */
    AT91S_SDRAMC	EBIC_SDRAMC ;                                          /* SDRAMC Configuration Registers */
    at91_reg		Reserved2[(0x60 - (0x30 + sizeof(AT91S_SDRAMC)) )/4] ; /* Reserved */
    AT91S_BFC		EBIC_BFC ;                                             /* BFC Configuration Registers */
} AT91S_EBIC, *AT91PS_EBIC ;


/*------------------------------------*/
/* EBIC_CSAR : Chip Select Assignment */
/*------------------------------------*/
#define	EBIC_CS0_SMC			0x0			/* EBIC Chip Select 0 assigned to the SMC */
#define	EBIC_CS0_BFC			0x1			/* EBIC Chip Select 0 assigned to the BFC */

#define	EBIC_CS1_SMC			0x0			/* EBIC Chip Select 1 assigned to the SMC */
#define	EBIC_CS1_SDRAMC			0x2			/* EBIC Chip Select 1 assigned to the SDRAMC */


/*----------------------------------*/
/* EBIC_CR : Configuration Register */
/*----------------------------------*/
#define	EBIC_PU_EN				0x0			/* EBIC Data Pulled-up */
#define	EBIC_PU_DIS				0x1			/* EBIC Data not Pulled-up */

#define	EBIC_HOLD_DIS			0x0			/* EBIC Bus Sharing Feature Disabled */
#define	EBIC_HOLD_EN			0x2			/* EBIC Bus Sharing Feature Enabled */

#endif /* ebic_h */

⌨️ 快捷键说明

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