📄 6416test.h
字号:
/*%####################################################################
% File name: 6416测试程序自写头文件
% Discription: 寄存器初始化和变量常量定义
% Language: c
% Version: 1.0
% History: none
% Copyright: MXD HEU 804 LAB
% Date: 2007/05/05
% Modifier: CJF
% Date: 2007/09/24
%####################################################################*/
/************************************************************/
/*********************Mcbsp端口号宏定义**********************/
/************************************************************/
#define mcbsp_port_0 0 //多通道缓冲串口0
#define mcbsp_port_1 1 //多通道缓冲串口1
/************************************************************/
/*******************82c52寄存器地址宏定义-emifb ce3****************/
/************************************************************/
#define addr82c52_TBR_W 0x6C000000 //bea2=0,bea1=0
#define addr82c52_RBR_R 0x6C000000 //bea2=0,bea1=0
#define addr82c52_UCR_W 0x6C000001 //bea2=0,bea1=1
#define addr82c52_USR_R 0x6C000001 //bea2=0,bea1=1
#define addr82c52_MCR_W 0x6C000002 //bea2=1,bea1=0
#define addr82c52_MCR_R 0x6C000002 //bea2=1,bea1=0
#define addr82c52_BRSR_W 0x6C000003 //bea2=1,bea1=1
#define addr82c52_MSR_R 0x6C000003 //bea2=1,bea1=1
#define IS82C52_TBR_W *(volatile unsigned char *)(addr82c52_TBR_W)
#define IS82C52_UCR_W *(volatile unsigned char *)(addr82c52_UCR_W)
#define IS82C52_MCR_W *(volatile unsigned char *)(addr82c52_MCR_W)
#define IS82C52_BRSR_W *(volatile unsigned char *)(addr82c52_BRSR_W)
/************************************************************/
/**********************flash160地址宏定义-emifbcce0********************/
/************************************************************/
#define FLASH160_BASE_ADDR 0x60000000 //flash160操作地址
#define FLASH160_CTRL1_ADDR \
(FLASH160_BASE_ADDR + (0x555 << 1))
#define FLASH160_CTRL2_ADDR \
(FLASH160_BASE_ADDR + (0x2AA << 1))
#define FLASH160_BASE_ADDR_PTR (unsigned short int *)FLASH160_BASE_ADDR
#define FLASH160_CTRL1 *(volatile unsigned short int *)(FLASH160_CTRL1_ADDR)
#define FLASH160_CTRL2 *(volatile unsigned short int *)(FLASH160_CTRL2_ADDR)
/************************************************************/
/**********************SDRAM地址宏定义-emifa ce2********************/
/************************************************************/
#define SDRAM_BASE_ADDR 0xA0000000 //SDRAM操作首地址
#define SDRAM_BASE_ADDR_PTR (int *)SDRAM_BASE_ADDR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -