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

📄 hardware.h

📁 UC/OS-II代码
💻 H
字号:
/* * linux/include/asm-arm/arch-s3c2410/hardware.h * * Copyright (C) 2002 MIZI Research, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *//* * History * * 2002-05-20: Janghoon Lyu <nandy@mizi.com> *    - Initial code */#ifndef __ASM_ARCH_HARDWARE_H#define __ASM_ARCH_HARDWARE_H/* Flusing areas */#define FLUSH_BASE_PHYS		0xe0000000	/* there is not exist physical memory */#define FLUSH_BASE		0xdf000000#define FLUSH_BASE_MINICACHE	0xde000000#define UNCACHEABLE_ADDR	0xdc000000#define MEM_SIZE		0x04000000/* * 角力肺绰 粮犁窍绰 巴篮 酒聪瘤父, 促弗 目澄 内靛甸阑 加捞扁 困秦... */#define PCIO_BASE		0/* * S3C2410 internal I/O mappings * * We have the following mapping: *		phys		virt *		48000000	e8000000 */#define VIO_BASE		0xe8000000	/* virtual start of IO space */#define PIO_START		0x48000000	/* physical start of IO space */#define io_p2v(x) ((x) | 0xa0000000)#define io_v2p(x) ((x) & ~0xa0000000)#include "S3C2410.h"/* * S3C2410 GPIO edge detection for IRQs: * IRQs are generated on Falling-Edge, Rising-Edge, both, low level or higg level. * This must be called *before* the corresponding IRQ is registered. */#define EXT_LOWLEVEL		0#define EXT_HIGHLEVEL		1#define EXT_FALLING_EDGE	2#define EXT_RISING_EDGE		4#define EXT_BOTH_EDGES		6extern int set_EXT_IRQ_mode(int irq, int edge);/* * Handy routine to set GPIO alternate functions */extern void set_GPIO_mode( int gpio_mode );/* Externl clock frequency used by CPU */#define FIN	12000000#ifdef CONFIG_S3C2410_SMDK#include "smdk.h"#endif#endif /* __ASM_ARCH_HARDWARE_H */

⌨️ 快捷键说明

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