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

📄 interrupt controller.s

📁 pxa255,bootloaer ,从初始化中断到GPIO口
💻 S
字号:
;/*************************************************************
;****************Interrupt Controller Register*****************
;*************************************************************/
ICIP		EQU		0x40d00000		;//Interrupt Controller IRQ Pending Register
IP8			EQU		(0x0<<8)			;;if IP[x]=0x0,IRQ NOT requested by any enabled source.
IP9			EQU		(0x0<<9)			;;if IP[x]=0x1,IRQ requested by an enabled source.
IP10		EQU		(0x0<<10)
IP11		EQU		(0x0<<11)
IP12		EQU		(0x0<<12)
IP13		EQU		(0x0<<13)
IP14		EQU		(0x0<<14)			
IP17		EQU		(0x0<<17)
IP18		EQU		(0x0<<18)
IP19		EQU		(0x0<<19)
IP20		EQU		(0x0<<20)
IP21		EQU		(0x0<<21)
IP22		EQU		(0x0<<22)
IP23		EQU		(0x0<<23)
IP24		EQU		(0x0<<24)
IP25		EQU		(0x0<<25)
IP26		EQU		(0x0<<26)
IP27		EQU		(0x0<<27)
IP28		EQU		(0x0<<28)
IP29		EQU		(0x0<<29)
IP30		EQU		(0x0<<30)
IP31		EQU		(0x0<<31)
ICIP_Value	EQU		(IP8|IP9|IP10|IP11|IP12|IP13|IP14|IP17|IP18|IP19|IP20|IP21|IP22|IP23|IP24|IP25|IP26|IP27|IP28|IP29|IP30|IP31)

ICMR 		EQU		0x40d00004 		;//Interrupt Controller Mask Register
IM8			EQU		(0x0<<8)		;if IM[x]=0x0 Pending interrupt is masked from becoming active (interrupts are NOT sent to CPU or Power Manager)
IM9			EQU		(0x0<<9)		;if IM[x]=0x1 Pending interrupt is allowed to become active (interrupts are sent to CPU and Power Manager)
IM10		EQU		(0x0<<10)
IM11		EQU		(0x0<<11)
IM12		EQU		(0x0<<12)
IM13		EQU		(0x0<<13)
IM14		EQU		(0x0<<14)			
IM17		EQU		(0x0<<17)
IM18		EQU		(0x0<<18)
IM19		EQU		(0x0<<19)
IM20		EQU		(0x0<<20)
IM21		EQU		(0x0<<21)
IM22		EQU		(0x0<<22)
IM23		EQU		(0x0<<23)
IM24		EQU		(0x0<<24)
IM25		EQU		(0x0<<25)
IM26		EQU		(0x0<<26)
IM27		EQU		(0x0<<27)
IM28		EQU		(0x0<<28)
IM29		EQU		(0x0<<29)
IM30		EQU		(0x0<<30)
IM31		EQU		(0x0<<31)
ICMR_Value	EQU		(IM8|IM9|IM10|IM11|IM12|IM13|IM14|IM17|IM18|IM19|IM20|IM21|IM22|IM23|IM24|IM25|IM26|IM27|IM28|IM29|IM30|IM31)		

ICLR 		EQU		0x40d00008 		;//Interrupt Controller Level Register 
IL8			EQU		(0x0<<8)		;if IL[x]=0x0,Interrupt routed to IRQ interrupt input.
IL9			EQU		(0x0<<9)		;if IL[x]=0x1,Interrupt routed to FIQ interrupt input.
IL10		EQU		(0x0<<10)
IL11		EQU		(0x0<<11)
IL12		EQU		(0x0<<12)
IL13		EQU		(0x0<<13)
IL14		EQU		(0x0<<14)						
IL17		EQU		(0x0<<17)
IL18		EQU		(0x0<<18)
IL19		EQU		(0x0<<19)
IL20		EQU		(0x0<<20)
IL21		EQU		(0x0<<21)
IL22		EQU		(0x0<<22)
IL23		EQU		(0x0<<23)
IL24		EQU		(0x0<<24)
IL25		EQU		(0x0<<25)
IL26		EQU		(0x0<<26)
IL27		EQU		(0x0<<27)
IL28		EQU		(0x0<<28)
IL29		EQU		(0x0<<29)
IL30		EQU		(0x0<<30)
IL31		EQU		(0x0<<31)
ICLR_Value	EQU		(IL8|IL9|IL10|IL11|IL12|IL13|IL14|IL17|IL18|IL19|IL20|IL21|IL22|IL23|IL24|IL25|IL26|IL27|IL28|IL29|IL30|IL31)

ICFP 		EQU		0x40d0000c 		;//Interrupt Controller  FIQ Pending Register 
FP8			EQU		(0x0<<8)
FP9			EQU		(0x0<<9)
FP10		EQU		(0x0<<10)
FP11		EQU		(0x0<<11)
FP12		EQU		(0x0<<12)
FP13		EQU		(0x0<<13)
FP14		EQU		(0x0<<14)			
FP17		EQU		(0x0<<17)
FP18		EQU		(0x0<<18)
FP19		EQU		(0x0<<19)
FP20		EQU		(0x0<<20)
FP21		EQU		(0x0<<21)
FP22		EQU		(0x0<<22)
FP23		EQU		(0x0<<23)
FP24		EQU		(0x0<<24)
FP25		EQU		(0x0<<25)
FP26		EQU		(0x0<<26)
FP27		EQU		(0x0<<27)
FP28		EQU		(0x0<<28)
FP29		EQU		(0x0<<29)
FP30		EQU		(0x0<<30)
FP31		EQU		(0x0<<31)
ICFP_Value	EQU		(FP8|FP9|FP10|FP11|FP12|FP13|FP14|FP17|FP18|FP19|FP20|FP21|FP22|FP23|FP24|FP25|FP26|FP27|FP28|FP29|FP30|FP31)

ICPR 		EQU		0x40d00010 		;//Interrupt Controller Pending Regis  if IS[x]=0x0,NOT pending if IS[x]=0x1,pending
IS8			EQU		(0x0<<8)	;GPIO[0] Edge Detect Interrupt Pending
IS9			EQU		(0x0<<9)	;GPIO[1] Edge Detect Interrupt Pending
IS10		EQU		(0x0<<10)	;GPIO[80:2] Edge Detect Interrupt Pending
IS11		EQU		(0x0<<11)	;USB Service Interrupt Pending
IS12		EQU		(0x0<<12)	;Performance Monitoring Unit (PMU) Interrupt Pending
IS13		EQU		(0x0<<13)	;I2S Interrupt Pending
IS14		EQU		(0x0<<14)	;AC97 Interrupt Pending		
IS17		EQU		(0x0<<17)	;LCD Controller Service Request Interrupt Pending
IS18		EQU		(0x0<<18)	;I2C Service Request Interrupt Pending
IS19		EQU		(0x0<<19)	;ICP Transmit/Receive/Error Interrupt Pending
IS20		EQU		(0x0<<20)	;STUART Transmit/Receive/Error Interrupt Pending
IS21		EQU		(0x0<<21)	;BTUART Transmit/Receive/Error Interrupt Pending
IS22		EQU		(0x0<<22)	;FFUART Transmit/Receive/Error Interrupt Pending
IS23		EQU		(0x0<<23)	;MMC Status/Error Detection Interrupt Pending
IS24		EQU		(0x0<<24)	;SSP Service Request Interrupt Pending
IS25		EQU		(0x0<<25)	;DMA Channel Service Request Interrupt Pending
IS26		EQU		(0x0<<26)	;OS Timer Match Register 0 Interrupt Pending
IS27		EQU		(0x0<<27)	;OS Timer Match Register 1 Interrupt Pending
IS28		EQU		(0x0<<28)	;OS Timer Match Register 2 Interrupt Pending
IS29		EQU		(0x0<<29)	;OS Timer Match Register 3 Interrupt Pending
IS30		EQU		(0x0<<30)	;RTC HZ Clock Tick Interrupt Pending
IS31		EQU		(0x0<<31)	;RTC Alarm Match Register Interrupt Pending
ICPR_Value	EQU		(IS8|IS9|IS10|IS11|IS12|IS13|IS14|IS17|IS18|IS19|IS20|IS21|IS22|IS23|IS24|IS25|IS26|IS27|IS28|IS29|IS30|IS31)

ICCR 		EQU		0x40d00014 		;//Interrupt Controller Control Register 
 									;//if DIM=0x1 Only enabled and unmasked (as defined in the ICMR) bring the processor out of idle mode.
DIM			EQU		(0x0<<0)		;//if DIM=0x0 All enabled interrupts bring the processor out of idle mode.
ICCR_Value	EQU		(DIM)	


			END

⌨️ 快捷键说明

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