📄 isr_a.s
字号:
;*********************************************************************************************************
; 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -