isr_a.s

来自「ucosii 的三星arm9 s3c2440 源码」· S 代码 · 共 64 行

S
64
字号
;*********************************************************************************************************
;                                               uC/OS-II
;                                         The Real-Time Kernel
;
;                          				(c) Copyright 2005, KInG
;                                          All Rights Reserved
;
; File    : isr_a.s
; Des	  : S3C2440侩 ISR 
; by      : KInG(kimingoo@hotmail.com): 
; History : 2005.07.30: Uart1狼 Receive ISR 累己
;*********************************************************************************************************

	IMPORT	OSIntEnter
	IMPORT	OSIntExit
	IMPORT	OSIntCtxSwFlag
	IMPORT	OS_IntCtxSw
	
	
	IMPORT  isrUart0RxD
	EXPORT  ISR_Uart0RxD
	
	AREA	UCOS_ISR , CODE, READONLY

ISR_Uart0RxD
	;----------------------------------------------------------------------------------	
	; 橇肺技辑 饭瘤胶磐 历厘
	;----------------------------------------------------------------------------------	
	STMFD   SP!, {R0-R3, R12, LR}
        
	;----------------------------------------------------------------------------------	
	; OSIntEnter() 龋免 肚绰 OSIntNesting 蔼阑 1 刘啊;
	;----------------------------------------------------------------------------------		
	BL      OSIntEnter

	;----------------------------------------------------------------------------------		
	; isrUart0RxD();
	;----------------------------------------------------------------------------------	
	BL		isrUart0RxD
	
	;----------------------------------------------------------------------------------	
	; OSIntExit();
	;----------------------------------------------------------------------------------	
	BL      OSIntExit

	;----------------------------------------------------------------------------------	
	; if(OSIntCtxSwFlag == TRUE) _IntCtxSw();
	;----------------------------------------------------------------------------------	
	LDR     R0, =OSIntCtxSwFlag    	; See if we need to do a context switch
	LDR     R1, [R0]
	CMP     R1, #1
	BEQ     OS_IntCtxSw           	; Yes, Switch to Higher Priority Task

	;----------------------------------------------------------------------------------	
	; 橇肺技辑 饭瘤胶磐 汗备;
	;----------------------------------------------------------------------------------	
	LDMFD   SP!, {R0-R3, R12, LR}   ; No, Restore registers of interrupted task''s stack
        
	;----------------------------------------------------------------------------------	
	; 牢磐反飘 汗蓖 疙飞 角青;
	;----------------------------------------------------------------------------------		
	SUBS    PC, LR, #4         		; Return from IRQ
	
	END

⌨️ 快捷键说明

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