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

📄 pxa255_intc.h

📁 老外的一个开源项目
💻 H
字号:
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------------------------
//
//  Header:  pxa255_intc.h
//
//  Defines the interrupt controller register layout and associated interrupt
//  sources and bit masks.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_INTC_H_
#define _PXA255_INTC_H_

#if __cplusplus
extern "C" {
#endif

//------------------------------------------------------------------------------
//
//  Type: INTC_REG_T    
//
//  Defines the interrupt control register layout.
//
//------------------------------------------------------------------------------

typedef struct
{
	VUINT32_T	ICIP;		//Interrupt controller IRQ pending register
	VUINT32_T	ICMR;		//Interrupt controller mask register
	VUINT32_T	ICLR;		//Interrupt controller level register
	VUINT32_T	ICFP;		//Interrupt controller FIQ pending register
	VUINT32_T	ICPR;		//Interrupt controller pending register
	VUINT32_T	ICCR;		//Interrupt controller control register
} INTC_REG_T, *PINTC_REG_T;

//
// Interrupt Controller sources bit definitions
//
#define INTC_HWUART     0x00000080
#define INTC_GPIO0      0x00000100
#define INTC_GPIO1      0x00000200
#define INTC_GPIO84_2   0x00000400
#define INTC_USB        0x00000800
#define INTC_PMU        0x00001000
#define INTC_I2S        0x00002000
#define INTC_AC97       0x00004000

#define INTC_NSSP       0x00010000
#define INTC_LCD        0x00020000
#define INTC_I2C        0x00040000
#define INTC_ICP        0x00080000
#define INTC_STUART     0x00100000
#define INTC_BTUART     0x00200000
#define INTC_FFUART     0x00400000
#define INTC_MMC        0x00800000
#define INTC_SSP        0x01000000
#define INTC_DMAC       0x02000000
#define INTC_OSMR0      0x04000000
#define INTC_OSMR1      0x08000000
#define INTC_OSMR2      0x10000000
#define INTC_OSMR3      0x20000000
#define INTC_RTC_TIC    0x40000000
#define INTC_RTCALARM   0x80000000


//
// Interrupt sources numbers (ID)
//
#define IRQ_HWUART     7
#define IRQ_GPIO0      8
#define IRQ_GPIO1      9
#define IRQ_GPIO84_2   10
#define IRQ_USB        11
#define IRQ_PMU        12
#define IRQ_I2S        13
#define IRQ_AC97       14

#define IRQ_NSSP       16
#define IRQ_LCD        17
#define IRQ_I2C        18
#define IRQ_ICP        19
#define IRQ_STUART     20
#define IRQ_BTUART     21
#define IRQ_FFUART     22
#define IRQ_MMC        23
#define IRQ_SSP        24
#define IRQ_DMAC       25
#define IRQ_OSMR0      26
#define IRQ_OSMR1      27
#define IRQ_OSMR2      28
#define IRQ_OSMR3      29
#define IRQ_RTC_TIC    30
#define IRQ_RTCALARM   31

#define IRQ_PXA255_MAX	IRQ_RTCALARM

//
// Interrupt Controller Control (ICCR) Bit Definitions
//
#define ICCR_DIM		0x00000001		// DIM - Set to exit Idle for only unmasked ints


#if __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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