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

📄 tahiti_def.h

📁 mx21 Nor flash Bootloader 源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
/****************************************************************************** C   H E A D E R   F I L E******************************************************************************* Project Name : Tahiti Bootstrap Project No.  :  Title        :  Template Ver : 0.3 File Name    : Tahiti_def.h   Last Modified: Feb 21, 2003 Description  : Definition header for DBMX2 silicon.  Assumptions  : NA  Dependency Comments : NA Project Specific Data : NA******************************************************************************/#ifndef MX1_DEF_INC#define MX1_DEF_INC//add for pll choice in bootloader#define __PLL_CHOICE__ //end/*************************** Header File Includes ****************************///;#########################################			//;# AIPI1                                 #			//;# $1000_0000 to $1000_0FFF              #			//;#########################################			#define AIPI1_BASE_ADDR	      	0x10000000	#define AIPI1_PSR0	      	(AIPI1_BASE_ADDR+0x00)	//  32bit Peripheral Size Reg 0#define AIPI1_PSR1	     	(AIPI1_BASE_ADDR+0x04)	//  32bit Peripheral Size Reg 1#define AIPI1_PAR	      	(AIPI1_BASE_ADDR+0x08)	//  32bit Peripheral Access Reg#define BIR_115200	1151#define BIR_57600	575     //// ;---------------------------------------;// ; UART1                                 ;// ; $1000A000 to $1000_A0FF             ;// ;---------------------------------------;#define UART1_BASE_ADDR         0x1000A000                #define UART1_RXDATA            UART1_BASE_ADDR                #define UART1_TXDATA            (UART1_BASE_ADDR+0x40)                #define UART1_CR1               (UART1_BASE_ADDR+0x80)                #define UART1_CR2               (UART1_BASE_ADDR+0x84)                #define UART1_CR3               (UART1_BASE_ADDR+0x88)                #define UART1_CR4               (UART1_BASE_ADDR+0x8C)                #define UART1_FCR               (UART1_BASE_ADDR+0x90)                #define UART1_SR1               (UART1_BASE_ADDR+0x94)                #define UART1_SR2               (UART1_BASE_ADDR+0x98)                #define UART1_ESC               (UART1_BASE_ADDR+0x9C)                #define UART1_TIM               (UART1_BASE_ADDR+0xA0)                #define UART1_BIR               (UART1_BASE_ADDR+0xA4)                #define UART1_BMR               (UART1_BASE_ADDR+0xA8)                #define UART1_BRC               (UART1_BASE_ADDR+0xAC)                #define UART1_ONEMS             (UART1_BASE_ADDR+0xB0)                #define UART1_TS	            (UART1_BASE_ADDR+0xB4) #define UART2_CR2				0x1000B084#define UART2_CR3				0x1000B088//------------------------------------------//System Control//------------------------------------------#define SYS_BASE_ADDR	      	0x10027800	#define SYS_SIDR	      	(SYS_BASE_ADDR+0x10)	//;  128bit Silicon ID Reg#define SYS_FMCR	      	(SYS_BASE_ADDR+0x14)	//;  Functional Muxing Control Reg#define SYS_GPCR	      	(SYS_BASE_ADDR+0x18)	//;  Global Peripheral Control Reg#define SYS_WBCR	      	(SYS_BASE_ADDR+0x1C)	//;  Well Bias Control Reg#define SYS_DSCR1	      	(SYS_BASE_ADDR+0x20)	//;  Drive Strength Crtl Reg 1#define SYS_DSCR2	      	(SYS_BASE_ADDR+0x24)	//;  Drive Strength Crtl Reg 2#define SYS_DSCR3	      	(SYS_BASE_ADDR+0x28)	//;  Drive Strength Crtl Reg 3#define SYS_DSCR4	      	(SYS_BASE_ADDR+0x2C)	//;  Drive Strength Crtl Reg 4#define SYS_DSCR5	      	(SYS_BASE_ADDR+0x30)	//;  Drive Strength Crtl Reg 5#define SYS_DSCR6	      	(SYS_BASE_ADDR+0x34)	//;  Drive Strength Crtl Reg 6#define SYS_DSCR7	      	(SYS_BASE_ADDR+0x38)	//;  Drive Strength Crtl Reg 7#define SYS_DSCR8	      	(SYS_BASE_ADDR+0x3C)	//;  Drive Strength Crtl Reg 8#define SYS_DSCR9	      	(SYS_BASE_ADDR+0x40)	//;  Drive Strength Crtl Reg 9#define SYS_DSCR10	      	(SYS_BASE_ADDR+0x44)	//;  Drive Strength Crtl Reg 10#define SYS_DSCR11	      	(SYS_BASE_ADDR+0x48)	//;  Drive Strength Crtl Reg 11#define SYS_DSCR12	      	(SYS_BASE_ADDR+0x4C)	//;  Drive Strength Crtl Reg 12#define SYS_PSCR	      	(SYS_BASE_ADDR+0x50)	//;  Priority Control/select Reg//;#########################################			//;# #define GPIO                          #			//;# $1001_5000 to $1001_5FFF              #			//;#########################################			#define GPIOA_BASE_ADDR	       	0x10015000	#define GPIOA_DDIR	      (GPIOA_BASE_ADDR+0x00)   //  32bit gpio pta data direction reg#define GPIOA_OCR1	      (GPIOA_BASE_ADDR+0x04)   //  32bit gpio pta output config 1 reg#define GPIOA_OCR2	      (GPIOA_BASE_ADDR+0x08)   //  32bit gpio pta output config 2 reg#define GPIOA_ICONFA1	      (GPIOA_BASE_ADDR+0x0C)   //  32bit gpio pta input config A1 reg#define GPIOA_ICONFA2	      (GPIOA_BASE_ADDR+0x10)   //  32bit gpio pta input config A2 reg#define GPIOA_ICONFB1	      (GPIOA_BASE_ADDR+0x14)   //  32bit gpio pta input config B1 reg#define GPIOA_ICONFB2	      (GPIOA_BASE_ADDR+0x18)   //  32bit gpio pta input config B2 reg#define GPIOA_DR	      (GPIOA_BASE_ADDR+0x1C)   //  32bit gpio pta data reg#define GPIOA_GIUS	      (GPIOA_BASE_ADDR+0x20)   //  32bit gpio pta in use reg#define GPIOA_SSR	      (GPIOA_BASE_ADDR+0x24)   //  32bit gpio pta sample status reg#define GPIOA_ICR1	      (GPIOA_BASE_ADDR+0x28)   //  32bit gpio pta interrupt ctrl 1 reg#define GPIOA_ICR2	      (GPIOA_BASE_ADDR+0x2C)   //  32bit gpio pta interrupt ctrl 2 reg#define GPIOA_IMR	      (GPIOA_BASE_ADDR+0x30)   //  32bit gpio pta interrupt mask reg#define GPIOA_ISR	      (GPIOA_BASE_ADDR+0x34)   //  32bit gpio pta interrupt status reg#define GPIOA_GPR	      (GPIOA_BASE_ADDR+0x38)   //  32bit gpio pta general purpose reg#define GPIOA_SWR	      (GPIOA_BASE_ADDR+0x3C)   //  32bit gpio pta software reset reg#define GPIOA_PUEN	      (GPIOA_BASE_ADDR+0x40)   //  32bit gpio pta pull up enable reg			#define GPIOB_BASE_ADDR	       	0x10015100	#define GPIOB_DDIR	      (GPIOB_BASE_ADDR+0x00)   //  32bit gpio ptb data direction reg#define GPIOB_OCR1	      (GPIOB_BASE_ADDR+0x04)   //  32bit gpio ptb output config 1 reg#define GPIOB_OCR2	      (GPIOB_BASE_ADDR+0x08)   //  32bit gpio ptb output config 2 reg#define GPIOB_ICONFA1	      (GPIOB_BASE_ADDR+0x0C)   //  32bit gpio ptb input config A1 reg#define GPIOB_ICONFA2	      (GPIOB_BASE_ADDR+0x10)   //  32bit gpio ptb input config A2 reg#define GPIOB_ICONFB1	      (GPIOB_BASE_ADDR+0x14)   //  32bit gpio ptb input config B1 reg#define GPIOB_ICONFB2	      (GPIOB_BASE_ADDR+0x18)   //  32bit gpio ptb input config B2 reg#define GPIOB_DR	      (GPIOB_BASE_ADDR+0x1C)   //  32bit gpio ptb data reg#define GPIOB_GIUS	      (GPIOB_BASE_ADDR+0x20)   //  32bit gpio ptb in use reg#define GPIOB_SSR	      (GPIOB_BASE_ADDR+0x24)   //  32bit gpio ptb sample status reg#define GPIOB_ICR1	      (GPIOB_BASE_ADDR+0x28)   //  32bit gpio ptb interrupt ctrl 1 reg#define GPIOB_ICR2	      (GPIOB_BASE_ADDR+0x2C)   //  32bit gpio ptb interrupt ctrl 2 reg#define GPIOB_IMR	      (GPIOB_BASE_ADDR+0x30)   //  32bit gpio ptb interrupt mask reg#define GPIOB_ISR	      (GPIOB_BASE_ADDR+0x34)   //  32bit gpio ptb interrupt status reg#define GPIOB_GPR	      (GPIOB_BASE_ADDR+0x38)   //  32bit gpio ptb general purpose reg#define GPIOB_SWR	      (GPIOB_BASE_ADDR+0x3C)   //  32bit gpio ptb software reset reg #define GPIOB_PUEN	      (GPIOB_BASE_ADDR+0x40)   //  32bit gpio ptb pull up enable reg			#define GPIOC_BASE_ADDR	       	0x10015200	#define GPIOC_DDIR	      (GPIOC_BASE_ADDR+0x00)   //  32bit gpio ptc data direction reg#define GPIOC_OCR1	      (GPIOC_BASE_ADDR+0x04)   //  32bit gpio ptc output config 1 reg#define GPIOC_OCR2	      (GPIOC_BASE_ADDR+0x08)   //  32bit gpio ptc output config 2 reg#define GPIOC_ICONFA1	      (GPIOC_BASE_ADDR+0x0C)   //  32bit gpio ptc input config A1 reg#define GPIOC_ICONFA2	      (GPIOC_BASE_ADDR+0x10)   //  32bit gpio ptc input config A2 reg#define GPIOC_ICONFB1	      (GPIOC_BASE_ADDR+0x14)   //  32bit gpio ptc input config B1 reg#define GPIOC_ICONFB2	      (GPIOC_BASE_ADDR+0x18)   //  32bit gpio ptc input config B2 reg#define GPIOC_DR	      (GPIOC_BASE_ADDR+0x1C)   //  32bit gpio ptc data reg#define GPIOC_GIUS	      (GPIOC_BASE_ADDR+0x20)   //  32bit gpio ptc in use reg#define GPIOC_SSR	      (GPIOC_BASE_ADDR+0x24)   //  32bit gpio ptc sample status reg#define GPIOC_ICR1	      (GPIOC_BASE_ADDR+0x28)   //  32bit gpio ptc interrupt ctrl 1 reg

⌨️ 快捷键说明

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