www.pudn.com > at91rm9200bsp.rar > at91rm9200.h
/* at91rm9200.h - ARM Integrator header file */
/*
modification history
--------------------
2004/10/23 this file is modified form VxWorks demo bsp integrator920t
*/
/*
This file contains I/O address and related constants for the ARM9200
*/
#ifndef INCat91rm9200
#define INCat91rm9200
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASMLANGUAGE
typedef volatile unsigned int AT91_REG;
typedef unsigned char BYTE;
/*typedef UINT AT91_REG;*/
#endif
#define SLOW_RATE_CLK 32768
#define MAIN_CLK 18432000
#define MAIN_CLK_DIV (0x04)
#define MAIN_CLK_MUL (0x27)
#define PROCESS_CLK (MAIN_CLK*MAIN_CLK_MUL/MAIN_CLK_DIV)
#define MASTER_CLK_DIV (0x02)
#define MASTER_CLK (PROCESS_CLK/MASTER_CLK_DIV)
#define ARM920T_SSRAM_SIZE 0x4000
#define ARM920T_ROMINIT_C_STACK_TOP 0x3000
#define ARM920T_INT_ROM_BASE 0x100000
#define ART920T_INT_ROM_SIZE 0x020000
#define AT91RM9200_DELAY_VALUE 20
#define PHER_AIC 0 /*Advanced Interrupt Controller FIQ */
#define PHER_SYSIRQ 1
#define PHER_PIOA 2 /*Parallel I/O Controller A */
#define PHER_PIOB 3 /*Parallel I/O Controller B */
#define PHER_PIOC 4 /*Parallel I/O Controller C */
#define PHER_PIOD 5 /*Parallel I/O Controller D */
#define PHER_US0 6 /*USART 0 */
#define PHER_US1 7 /*USART 1 */
#define PHER_US2 8 /*USART 2 */
#define PHER_US3 9 /*USART 3 */
#define PHER_MCI 10 /*Multimedia Card Interface */
#define PHER_UDP 11 /*USB Device Port */
#define PHER_TWI 12 /*Two-wire Interface */
#define PHER_SPI 13 /*Serial Peripheral Interface */
#define PHER_SSC0 14 /*Synchronous Serial Controller 0 */
#define PHER_SSC1 15 /*Synchronous Serial Controller 1 */
#define PHER_SSC2 16 /*Synchronous Serial Controller 2 */
#define PHER_TC0 17 /*Timer/Counter 0 */
#define PHER_TC1 18 /*Timer/Counter 1 */
#define PHER_TC2 19 /*Timer/Counter 2 */
#define PHER_TC3 20 /*Timer/Counter 3 */
#define PHER_TC4 21 /*Timer/Counter 4 */
#define PHER_TC5 22 /*Timer/Counter 5 */
#define PHER_UHP 23 /*USB Host Port */
#define PHER_EMAC 24 /*Ethernet MAC */
#define PHER_AICIRQ0 25 /*Advanced Interrupt Controller IRQ0 */
#define PHER_AICIRQ1 26 /*Advanced Interrupt Controller IRQ1 */
#define PHER_AICIRQ2 27 /*Advanced Interrupt Controller IRQ2 */
#define PHER_AICIRQ3 28 /*Advanced Interrupt Controller IRQ3 */
#define PHER_AICIRQ4 29 /*Advanced Interrupt Controller IRQ4 */
#define PHER_AICIRQ5 30 /*Advanced Interrupt Controller IRQ5 */
#define PHER_AICIRQ6 31
#include "at91pdc.h"
#include "at91dbgu.h"
#include "at91ebi.h"
#include "at91emac.h"
#include "at91intrctl.h"
#include "at91mci.h"
/*#include "at91pdc.h"*/
#include "at91pio.h"
#include "at91pmc.h"
#include "at91rtc.h"
#include "at91sdramc.h"
#include "at91smc.h"
#include "at91spi.h"
#include "at91ssc.h"
#include "at91timerall.h"
#include "at91twi.h"
#include "at91uart.h"
#include "at91udp.h"
#define USB_DEV_BASE_ADDR 0xFFFB0000
#define MULT_CARD_BASE_ADDR 0xFFFB4000
#define TWO_WIRE_IF_BASE_ADDR 0xFFFB8000
#define ETH_MAC_BASE_ADDR 0xFFFBC000
#define SER_SYNC_CONTROL_BASE_ADDR 0xFFFD0000
#define SPI_DEV_BASE_ADDR 0xFFFE0000
#define BUS BUS_TYPE_NONE
#ifdef __cplusplus
}
#endif
#endif /* INCintegratorh */