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

📄 s3c2410.h

📁 在阳初s3c2410上实现的uudecode协议
💻 H
字号:
#ifndef __S3C2410_H__
#define __S3C2410_H__

#include "global.h"
#include "arm.h"

#define S3C2410_REGBASE 0x40000000

/* Watch Dog Timer regester */
#define WTCON 			REGL(S3C2410_REGBASE, 0x13000000)

/* Interrupt regesters */
#define INTMSK 	  		REGL(S3C2410_REGBASE, 0x0A000008)
#define INTSUBMSK 		REGL(S3C2410_REGBASE, 0x0A00001C)

/* Clock and Power Management regesters */
#define LOCKTIME 		REGL(S3C2410_REGBASE, 0x0C000000)
#define MPLLCON	 		REGL(S3C2410_REGBASE, 0x0C000004)
#define UPLLCON	 		REGL(S3C2410_REGBASE, 0x0C000008)
#define CLKDIVN	 		REGL(S3C2410_REGBASE, 0x0C000014)

/* bus width & wait control regester */
#define BWSCON	 		REGL(S3C2410_REGBASE, 0x08000000)

/* bank contorl regesters */
#define BANKCON0		REGL(S3C2410_REGBASE, 0x08000004)
#define BANKCON1 		REGL(S3C2410_REGBASE, 0x08000008)
#define BANKCON2 		REGL(S3C2410_REGBASE, 0x0800000c)
#define BANKCON3 		REGL(S3C2410_REGBASE, 0x08000010)
#define BANKCON4 		REGL(S3C2410_REGBASE, 0x08000014)
#define BANKCON5 		REGL(S3C2410_REGBASE, 0x08000018)
#define BANKCON6 		REGL(S3C2410_REGBASE, 0x0800001c)
#define BANKCON7 		REGL(S3C2410_REGBASE, 0x08000020)
#define REFRESH	 		REGL(S3C2410_REGBASE, 0x08000024)
#define BANKSIZE 		REGL(S3C2410_REGBASE, 0x08000028)
#define MRSRB6   		REGL(S3C2410_REGBASE, 0x0800002c)
#define MRSRB7   		REGL(S3C2410_REGBASE, 0x08000030)

/* GPIO registers */
#define GPFCON			REGL(S3C2410_REGBASE, 0x16000050)
#define	GPFDAT			REGL(S3C2410_REGBASE, 0x16000054)
#define GPFUP			REGL(S3C2410_REGBASE, 0x16000058)
#define GPHCON  		REGL(S3C2410_REGBASE, 0x16000070)
#define GPHDAT  		REGL(S3C2410_REGBASE, 0x16000074)
#define GPHUP   		REGL(S3C2410_REGBASE, 0x16000078)

/* UART registers */
#define ULCON0   		REGL(S3C2410_REGBASE, 0x10000000)
#define UCON0	 		REGL(S3C2410_REGBASE, 0x10000004)
#define UFCON0	 		REGL(S3C2410_REGBASE, 0x10000008)
#define UMCON0	 		REGL(S3C2410_REGBASE, 0x1000000C)
#define UTRSTAT0 		REGL(S3C2410_REGBASE, 0x10000010)
#define UTXH0	 		REGB(S3C2410_REGBASE, 0x10000020)
#define URXH0	 		REGB(S3C2410_REGBASE, 0x10000024)
#define UBRDIV0	 		REGL(S3C2410_REGBASE, 0x10000028)

#endif /* __S3C2410_H__ */

⌨️ 快捷键说明

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