📄 intc.h
字号:
/**************************************************************************************
*
* Project Name : S3C6410 Validation
*
* Copyright 2006 by Samsung Electronics, Inc.
* All rights reserved.
*
* Project Description :
* This software is only for validating functions of the S3C6410.
* Anybody can use this software without our permission.
*
*--------------------------------------------------------------------------------------
*
* File Name : intc.h
*
* File Description : This file declares prototypes of interrupt controller API funcions.
*
* Author : Haksoo,Kim
* Dept. : AP Development Team
* Created Date : 2006/11/08
* Version : 0.1
*
* History
* - Created(Haksoo,Kim 2006/11/08)
* - Added Software Interrupt API function (wonjoon.jang 2007/01/18)
*
**************************************************************************************/
#ifndef __INTC_H__
#define __INTC_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "def.h"
void INTC_Init(void);
void INTC_Enable(u32 intNum);
void INTC_Disable(u32 intNum);
u32 INTC_ReadIntSrc(void);
void INTC_SetHandler(u32 intNum, void (*handler)() __irq);
void INTC_SetVectAddr(u32 intNum, void (*handler)(void) __irq);
void INTC_ClearVectAddr(void);
void INTC_SetSoftInt(u32 intNum);
void INTC_ClearSoftInt(u32 intNum);
u32 INTC_GetVicIrqStatus(u32 uController);
#define INT_LIMIT (64)
//INT NUM - VIC0
#define NUM_EINT0 (0)
#define NUM_EINT1 (1)
#define NUM_RTC_TIC (2)
#define NUM_CAMIF_C (3)
#define NUM_CAMIF_P (4)
#define NUM_CAMIF_MC (5)
#define NUM_CAMIF_MP (6)
#define NUM_CAMIF_WE_C (7)
#define NUM_CAMIF_WE_P (8)
#define NUM_POST0 (9)
#define NUM_ROTATOR (10)
#define NUM_2D (11)
#define NUM_TVENC (12)
#define NUM_SCALER (13)
#define NUM_BATF (14)
#define NUM_JPEG (15)
#define NUM_MFC (16)
#define NUM_SDMA0 (17)
#define NUM_SDMA1 (18)
#define NUM_ARM_DMAERR (19)
#define NUM_ARM_DMA (20)
#define NUM_ARM_DMAS (21)
#define NUM_KEYPAD (22)
#define NUM_TIMER0 (23)
#define NUM_TIMER1 (24)
#define NUM_TIMER2 (25)
#define NUM_WDT (26)
#define NUM_TIMER3 (27)
#define NUM_TIMER4 (28)
#define NUM_LCD0 (29)
#define NUM_LCD1 (30)
#define NUM_LCD2 (31)
//INT NUM - VIC1
#define NUM_EINT2 (32+0)
#define NUM_EINT3 (32+1)
#define NUM_PCM0 (32+2)
#define NUM_PCM1 (32+3)
#define NUM_AC97 (32+4)
#define NUM_UART0 (32+5)
#define NUM_UART1 (32+6)
#define NUM_UART2 (32+7)
#define NUM_UART3 (32+8)
#define NUM_DMA0 (32+9)
#define NUM_DMA1 (32+10)
#define NUM_ONENAND0 (32+11)
#define NUM_ONENAND1 (32+12)
#define NUM_NFC (32+13)
#define NUM_CFC (32+14)
#define NUM_UHOST (32+15)
#define NUM_SPI0 (32+16)
#define NUM_SPI1 (32+17)
#define NUM_IIC (32+18)
#define NUM_HSItx (32+19)
#define NUM_HSIrx (32+20)
//#define RESERVED (32+21)
#define NUM_MSM (32+22)
#define NUM_HOSTIF (32+23)
#define NUM_HSMMC0 (32+24)
#define NUM_HSMMC1 (32+25)
#define NUM_OTG (32+26)
#define NUM_IRDA (32+27)
#define NUM_RTC_ALARM (32+28)
#define NUM_SEC (32+29)
#define NUM_PENDN (32+30)
#define NUM_ADC (32+31)
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -