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

📄 s3c2443_intr.h

📁 2443 wince5.0 bsp, source code
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
//
//  Header:  s3c2443_intr.h
//
//  Defines the interrupt controller register layout and associated interrupt
//  sources and bit masks.
//
#ifndef __S3C2443_INTR_H
#define __S3C2443_INTR_H

#if __cplusplus
extern "C" {
#endif

//------------------------------------------------------------------------------
//
//  Type: S3C2443_INTR_REG    
//
//  Interrupt control registers. This register bank is located by the constant 
//  S3C2443_BASE_REG_XX_INTR in the configuration file s3c2443_base_reg_cfg.h.
//

typedef struct {
    UINT32 SRCPND;                     // interrupt request status reg
    UINT32 INTMOD;                     // interrupt mode reg
    UINT32 INTMSK;                     // interrupt mask reg
    UINT32 PRIORITY;                   // priority reg
    UINT32 INTPND;                     // interrupt pending reg
    UINT32 INTOFFSET;                  // interrupt offset reg
    UINT32 SUBSRCPND;                  // SUB source pending reg
    UINT32 INTSUBMSK;                  // interrupt SUB mask reg

} S3C2443_INTR_REG, *PS3C2443_INTR_REG;


//------------------------------------------------------------------------------
//
//  Define: IRQ_XXX
//
//  Interrupt sources numbers
//

#define IRQ_EINT0           0           // Arbiter 0
#define IRQ_EINT1           1
#define IRQ_EINT2           2
#define IRQ_EINT3           3

#define IRQ_EINT4_7         4           // Arbiter 1
#define IRQ_EINT8_23        5
#define IRQ_CAM             6
#define IRQ_BAT_FLT         7
#define IRQ_TICK            8
#define IRQ_WDT_AC97        9

#define IRQ_TIMER0          10          // Arbiter 2
#define IRQ_TIMER1          11
#define IRQ_TIMER2          12
#define IRQ_TIMER3          13
#define IRQ_TIMER4          14
#define IRQ_UART2           15

#define IRQ_LCD             16          // Arbiter 3
#define IRQ_DMA             17
#define IRQ_UART3           18
#define IRQ_CFCON           19
#define IRQ_SDI_1           20
#define IRQ_SDI_0           21
#define IRQ_SPI1            22          // Arbiter 4
#define IRQ_UART1           23
#define IRQ_NFCON           24
#define IRQ_USBD            25
#define IRQ_USBH            26
#define IRQ_IIC             27

#define IRQ_UART0           28          // Arbiter 5
#define IRQ_SPI0            29
#define IRQ_RTC             30
#define IRQ_ADC             31

#define IRQ_EINT4           32
#define IRQ_EINT5           33
#define IRQ_EINT6           34
#define IRQ_EINT7           35
#define IRQ_EINT8           36
#define IRQ_EINT9           37
#define IRQ_EINT10          38
#define IRQ_EINT11          39
#define IRQ_EINT12          40
#define IRQ_EINT13          41
#define IRQ_EINT14          42
#define IRQ_EINT15          43
#define IRQ_EINT16          44
#define IRQ_EINT17          45
#define IRQ_EINT18          46
#define IRQ_EINT19          47
#define IRQ_EINT20          48
#define IRQ_EINT21          49
#define IRQ_EINT22          50
#define IRQ_EINT23          51

#define IRQ_AUDIO		52
#define IRQ_DMA0   		  53
#define IRQ_DMA1   		  54
#define IRQ_DMA2  		  55
#define IRQ_DMA3   		  56
#define IRQ_DMA4   		  57
#define IRQ_DMA5   		  58
// Interrupt sub-register source numbers
//
#define IRQ_SUB_RXD0     0
#define IRQ_SUB_TXD0     1
#define IRQ_SUB_ERR0     2
#define IRQ_SUB_RXD1     3
#define IRQ_SUB_TXD1     4
#define IRQ_SUB_ERR1     5
#define IRQ_SUB_RXD2     6
#define IRQ_SUB_TXD2     7
#define IRQ_SUB_ERR2     8
#define IRQ_SUB_TC       9
#define IRQ_SUB_ADC      10
#define	IRQ_SUB_CAM_C	 11
#define	IRQ_SUB_CAM_P	 12
#define IRQ_SUB_LCD1     14
#define IRQ_SUB_LCD2     15
#define IRQ_SUB_LCD3     16
#define IRQ_SUB_LCD4     17
#define IRQ_SUB_DMA0     18
#define IRQ_SUB_DMA1     19
#define IRQ_SUB_DMA2     20
#define IRQ_SUB_DMA3     21
#define IRQ_SUB_DMA4     22
#define IRQ_SUB_DMA5     23
#define IRQ_SUB_RXD3     24
#define IRQ_SUB_TXD3     25
#define IRQ_SUB_ERR3     26
#define	IRQ_SUB_WDT	 27 	
#define	IRQ_SUB_AC97	 28 

//------------------------------------------------------------------------------

#if __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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