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

📄 wid.h

📁 PXA250上的XBOOT
💻 H
字号:
/*  * $Id: wid.h,v 1.2 2003/03/26 12:14:33 telka Exp $ * * Copyright (C) 2001, 2002 ETC s.r.o. * * 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. * * Written by Marcel Telka <marcel@telka.sk>, 2001, 2002. * */#ifndef WID_H#define WID_H#include <bldver.h>#ifndef WID#error WID not defined!#endif/*  * board name */#if WID == EI370#	define	BOARD_NAME	_T("WID-FV1")#elif WID == EP002#	define	BOARD_NAME	_T("WID-PT1")#elif WID == EP202#	define	BOARD_NAME	_T("WID-PT2")#else#	define	BOARD_NAME	_T("WID-UNKNOWN")#endif/*  * WID's memory map */#define	MEM_PHYS_FLASH		0x00000000#define	MEM_VIRT_FLASH		0x80000000#if (WID == EI370)#define	MEM_SIZE_FLASH		0x01000000#else /* (WID == EI370) */#define	MEM_SIZE_FLASH		0x02000000#endif /* (WID == EI370) */#define	MEM_PHYS_SDRAM		0xC0000000#define	MEM_VIRT_SDRAM		0x8C000000#if (WID == EI370)#define	MEM_SIZE_SDRAM		0x04000000#else /* (WID == EI370) */#define	MEM_SIZE_SDRAM		0x02000000#endif /* (WID == EI370) */#if (WID != EI370)#define	MEM_PHYS_PCMCIA0_IO	0x20000000#define	MEM_VIRT_PCMCIA0_IO	0x90000000#define	MEM_SIZE_PCMCIA0_IO	0x04000000#define	MEM_PHYS_PCMCIA0_ATTR	0x28000000#define	MEM_VIRT_PCMCIA0_ATTR	0x98000000#define	MEM_SIZE_PCMCIA0_ATTR	0x04000000#define	MEM_PHYS_PCMCIA0_MEM	0x2C000000#define	MEM_VIRT_PCMCIA0_MEM	0x9C000000#define	MEM_SIZE_PCMCIA0_MEM	0x04000000#endif /* (WID != EI370) */#define	MEM_PHYS_APB		0x80000000#define	MEM_VIRT_APB		0x88000000#define	MEM_SIZE_APB		0x00400000#define	MEM_PHYS_SCM		0x90000000#define	MEM_VIRT_SCM		0x89000000#define	MEM_SIZE_SCM		0x00400000#define	MEM_PHYS_MPCM		0xA0000000#define	MEM_VIRT_MPCM		0x8A000000#define	MEM_SIZE_MPCM		0x00400000#define	MEM_PHYS_ASB		0xB0000000#define	MEM_VIRT_ASB		0x8B000000#define	MEM_SIZE_ASB		0x00400000#define	MEM_PHYS_ZERO		0xE0000000#define	MEM_VIRT_ZERO		0x88C00000#define	MEM_SIZE_ZERO		0x00400000/*  * WID's WinCE memory map *//* bootloader */#define	MEM_PHYS_XBOOT		MEM_PHYS_FLASH#define	MEM_VIRT_XBOOT		MEM_VIRT_FLASH#define	MEM_SIZE_XBOOT		0x00040000/* WinCE image */#define	MEM_PHYS_WINCE		(MEM_PHYS_XBOOT + MEM_SIZE_XBOOT)#define	MEM_VIRT_WINCE		(MEM_VIRT_XBOOT + MEM_SIZE_XBOOT)#if (WID == EI370)#	define	MEM_SIZE_WINCE	0x00FC0000#else#	define	MEM_SIZE_WINCE	0x01FC0000#endif/* xboot runtime */#define	MEM_PHYS_XBOOT_RUN	MEM_PHYS_SDRAM#define	MEM_VIRT_XBOOT_RUN	MEM_VIRT_SDRAM#define	MEM_SIZE_XBOOT_RUN	0x00010000/*  * GPIO allocations */#define	GPIO_PWR		0#if (WID == EP202)#	define	GPIO_BCS	4#	define	GPIO_ISD	18#else#	define	GPIO_BCR	17#endif#if (WID == EI370)#	define	GPIO_USP	19#	define	GPIO_WT		20#	define	GPIO_DIR	21#	define	GPIO_WR		22#	define	GPIO_DS		23#	define	GPIO_BCR2	25#else#	define	GPIO_USP	25#endif/*  * GPIO masks */							/* EI370  EP002  EP202 */#define	GPIO_BCR_MASK		(1 << GPIO_BCR)		/*   *      *      -   */#define	GPIO_BCR2_MASK		(1 << GPIO_BCR2)	/*   *      -      -   */#define GPIO_BCS_MASK		(1 << GPIO_BCS)		/*   -      -      *   */#define	GPIO_DIR_MASK		(1 << GPIO_DIR)		/*   *      -      -   */#define	GPIO_DS_MASK		(1 << GPIO_DS)		/*   *      -      -   */#define	GPIO_ISD_MASK		(1 << GPIO_ISD)         /*   -      -      *   */#define	GPIO_PWR_MASK		(1 << GPIO_PWR)		/*   *      *      *   */#define	GPIO_USP_MASK		(1 << GPIO_USP)		/*   *      *      *   */#define	GPIO_WR_MASK		(1 << GPIO_WR)		/*   *      -      -   */#define	GPIO_WT_MASK		(1 << GPIO_WT)		/*   *      -      -   *//* configuration */#define	HAVE_USB#if WID == EI370#	define	HAVE_PP#endif#endif /* WID_H */

⌨️ 快捷键说明

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