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

📄 board.h

📁 arm s3c2410常用头文件整理
💻 H
字号:
#ifndef BOARD_H
#define BOARD_H

#include "s3c2410.h"

/* Interrupts */
#define INT_CTL_BASE 0x4A000000
/* Interrupts offset */
#define oINTMSK  0x08
#define oINTSUBMSK 0x1C
#define oLOCKTIME 0x00
#define oMPLLCON 0x04

/* Clock and Power Management */
#define CLK_CTL_BASE 0x4C000000

/* Clock Process Value */ 
#define upp_48Mhz 0x78023
#define mpll_200mhz 0xa1031

/* SDRAM RANGE */
#define SDRAM_START 0x30000000;
#define SDRAM_END 	0x33FFFFFC;
#define SDRAM_DATA  0x32000000;

/* Memory configuration values */
#define vBWSCON 	0x2211d110 
#define vBANKCON0 0x00000700
#define vBANKCON1 0x00000700
#define vBANKCON2 0x00000700
#define vBANKCON3 0x00001f4c
#define vBANKCON4 0x00000700
#define vBANKCON5 0x00000700
#define vBANKCON6 0x00018005
#define vBANKCON7 0x00018005
#define vREFRESH 	0x008e0459
#define vBANKSIZE 0xb2
#define vMRSRB6 	0x30
#define vMRSRB7 	0x30

/* GPIO */
#define GPIO_CTL_BASE		0x56000000
/* GPIO Offset */
#define oGPIO_DAT		0x4
#define oGPIO_UP		0x8
#define oGPIO_A			0x00
#define oGPIO_F			0x50

/* UART */
#define	TXD0READY	( 1 << 2 )
#define	RXD0READY	( 1 )
#define UART_PCLK	50000000
#define UART_BAUD_RATE	115200
#define UART_BRD ((UART_PCLK  / (UART_BAUD_RATE * 16)) - 1)





#endif

⌨️ 快捷键说明

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