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

📄 bfc.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           : bfc.h
//* Object              : Burst Flash Controller Header File
//*
//* 1.0 21/03/01 ED     : Creation
//*----------------------------------------------------------------------------

#ifndef bfc_h
#define bfc_h

#include    "periph/stdc/std_c.h"

/*------------------------------------------------------------*/
/* Burst Flash Controller User Interface Structure Definition */
/*------------------------------------------------------------*/

typedef struct _AT91S_BFC
{
    at91_reg		BFC_MR ;			/* Mode Register */
} AT91S_BFC, *AT91PS_BFC ;


/*------------------------*/
/* BFC_MR : Mode Register */
/*------------------------*/
#define	BFC_BFCOM_MASK			0x3			/* BFC Operating Mode Command */

#define	BFC_DISABLED			0x0			/* BFC Disabled */
#define	BFC_ASYNC_MODE			0x1			/* BFC Asynchronous Operating Mode */
#define	BFC_BURST_MODE			0x2			/* BFC Burst Read Operating Mode */

#define	BFC_BFCC_MASK			0xC			/* BFC Burst Read Clock Command */

#define	BFC_MCK_BURST			0x4			/* BFC Burst Read using MCK */
#define	BFC_MCK2_BURST			0x8			/* BFC Burst Read using MCK/2 */
#define	BFC_MCK4_BURST			0xC			/* BFC Burst Read using MCK/4 */

#define	BFC_AVL_MASK			0xF0		/* BFC Address Valid Latency Mask */
#define	BFC_AVL_SHIFT			0x4			/* Logical Left Shift to be applied for AVL */

#define	BFC_PAGE_SIZE_MASK		0x700		/* BFC Page Size Mask */

#define	BFC_NO_PAGE				0x0			/* No BFC Page Handling */
#define	BFC_16_PAGE				0x100		/* 16 Bytes Page Size */
#define	BFC_32_PAGE				0x200		/* 32 Bytes Page Size */
#define	BFC_64_PAGE				0x300		/* 64 Bytes Page Size */
#define	BFC_128_PAGE			0x400		/* 128 Bytes Page Size */
#define	BFC_256_PAGE			0x500		/* 256 Bytes Page Size */
#define	BFC_512_PAGE			0x600		/* 512 Bytes Page Size */
#define	BFC_1K_PAGE				0x700		/* 1024 Bytes Page Size */

#define	BFC_OEL_MASK			0x3000		/* BFC Output Enable Latency Mask */
#define	BFC_OEL_SHIFT			0xC			/* Logical Left Shift to be applied for OEL */

#define	BFC_BAAEN				0x10000		/* BFC Burst Address Advance Enable Bit */

#define	BFC_BFOEH				0x20000		/* BFC Burst Flash Output Enable Handling Bit */

#define	BFC_MUXEN				0x40000		/* BFC Multiplexed Bus Enable Bit */

#endif /* bfc_h */

⌨️ 快捷键说明

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