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

📄 xscale.h

📁 true type font release
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////////// Copyright(c) 2001-2002 Hybus Co,.ltd. All rights reserved.//  // Module name://      main.c//  // Description://  //  // Author://      bedguy//  // Created://      2002.10/////////////////////////////////////////////////////////////////////////////////#ifndef START_H#define START_H#define SDRAM_BASE        0xA0000000//Interrupt Control Registers#define INTERRUPT_CONTROL_BASE 0x40D00000#define ICIP              0x00#define ICMR              0x04#define ICLR              0x08#define ICFP              0x0C#define ICPR              0x10#define ICCR              0x14#define CLOCK_MANAGER_BASE 0x41300000#define CCCR              0x00#define CKEN              0x04#define OSCC              0x08#define CCCR_VALUE        0x00000241		// 400 MHz//#define CCCR_VALUE        0x00000161		// TEST//#define CCCR_VALUE        0x00000461		// TEST//#define CCCR_VALUE        0x000001C1		// |0001|1100|0001 0x1C1#define CKEN_VALUE        0x00000040#define OSCC_VALUE        0x00000002//0x00000002#define OSCR              0x40A00010#define CLK_TO_10MS	  36864         // 3.686400 Mhz//GPIO registers#define GPIO_BASE         0x40E00000#define GPLR0              (*((volatile ulong *)(GPIO_BASE+0x00)))#define GPLR1             0x04#define GPLR2             0x08#define GPDR0             0x0C#define GPDR1              (*((volatile ulong *)(GPIO_BASE+0x10)))#define GPDR2             0x14#define GPSR0             0x18#define GPSR1             0x1C#define GPSR2             0x20#define GPCR0             0x24#define GPCR1             0x28#define GPCR2             0x2C#define GRER0             0x30#define GRER1             0x34#define GRER2             0x38#define GFER0             0x3C#define GFER1             0x40#define GFER2             0x44#define GDER0             0x48#define GDER1             0x4C#define GDER2             0x50#define GAFR0_L           0x54#define GAFR0_U           0x58#define GAFR1_L            (*((volatile ulong *)(GPIO_BASE+0x5C)))#define GAFR1_U           0x60#define GAFR2_L           0x64#define GAFR2_U           0x68//GPIO initial values#define GPDR0_VALUE       0xC0439330//0xC05BE830//0xC05BB130//0xC05B91F0#define GPDR1_VALUE       0xFCFFAB82#define GPDR2_VALUE       0x0001FFFF#define GPSR0_VALUE       0x00408030//0x00588020//00588030//0x00588020#define GPSR1_VALUE       0x00BFA882#define GPSR2_VALUE       0x0001C000#define GPCR0_VALUE       0xC0031100//0xC0033110//0xC00311D0#define GPCR1_VALUE       0xFC400300#define GPCR2_VALUE       0x00003FFF#define GRER0_VALUE       0x0F800000#define GRER1_VALUE       0x00000001#define GRER2_VALUE       0x0020000C#define GFER0_VALUE       0x00000000#define GFER1_VALUE       0x00000000#define GFER2_VALUE       0x00004001#define GAFR0L_VALUE      0x80000000#define GAFR0U_VALUE      0xA5000010#define GAFR1L_VALUE      0x60008018#define GAFR1U_VALUE      0xAAA5AAAA#define GAFR2L_VALUE      0xAAA0000A#define GAFR2U_VALUE      0x00000002//Memory Control Registers#define MEM_CTL_BASE      0x48000000#define MDCNFG            0x00#define MDREFR            0x04#define MSC0              0x08#define MSC1              0x0C#define MSC2              0x10#define MECR              0x14#define SXCNFG            0x1C#define MCMEM0            0x28#define MCMEM1            0x2C#define MCATT0            0x30#define MCATT1            0x34#define MCIO0             0x38#define MCIO1             0x3C#define MDMRS             0x40//Memory Control Register initial values#define MDCNFG_VALUE      0x00001AC9//0x0B000BC9#define MDREFR_VALUE      0x020DF016//0x03CDF016//0x000BC018//0x00038016#define MSC0_VALUE        0x7FF83FF0//0xFFF03FF0//0x23F223F2//0x3FF83FF0#define MSC1_VALUE        0x12BC5554//0x12BC8240//0x5AA85AA8#define MSC2_VALUE        0x7FF97FF1//0x7FF17FF1//0x24482448#define MECR_VALUE        0x00000000//0x00000002#define SXCNFG_VALUE      0x00000000//0x40484048#define MCMEM0_VALUE      0x00010504//0x00020308#define MCMEM1_VALUE      0x00010504//0x00020308#define MCATT0_VALUE      0x00010504//0x00020308#define MCATT1_VALUE      0x00010504//0x00020308#define MCIO0_VALUE       0x00004715//0x00020308#define MCIO1_VALUE       0x00004715//0x00020308#define MDMRS_VALUE       0x00000000#define FLYCNFG_VALUE     0x01FE01FE// Power management#define RCSR              0x40F00030#define RCSR_SLEEP        0x00000004#define PSPR              0x40F00008#define PSSR              0x40F00004#define PSSR_PH           0x00000010#define PSSR_RDH          0x00000020#define PSSR_STATUS_MASK  0x00000007#define LCCR0       0x44000000	  	/* LCD Controller Control Register 0 */#define LCCR1       0x44000004  	/* LCD Controller Control Register 1 */#define LCCR2       0x44000008  	/* LCD Controller Control Register 2 */#define LCCR3       0x4400000C  	/* LCD Controller Control Register 3 */#define DFBR0       0x44000020  	/* DMA Channel 0 Frame Branch Register */#define DFBR1       0x44000024  	/* DMA Channel 1 Frame Branch Register */#endif //START_H

⌨️ 快捷键说明

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