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

📄 serialisr.s85

📁 FreeRTOS is a portable, open source, mini Real Time Kernel - a free to download and royalty free RTO
💻 S85
字号:
		RSEG ICODE:CODE

		EXTERN vUARTRxISRHandler
		EXTERN vUARTTxISRHandler		
		
		PUBLIC vUARTRxISRWrapper
		PUBLIC vUARTTxISRWrapper		

; Wrappers for the serial port interrupt service routines.  These can cause a
; context switch so requires an assembly wrapper.

; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
#include "ISR_Support.h"

vUARTRxISRWrapper:

	portSAVE_CONTEXT				; Save the context of the current task.

	jarl	vUARTRxISRHandler, lp	; Call the ISR routine.

	portRESTORE_CONTEXT				; Restore the context of the current task -
									; which may be different to the task that
									; was interrupted.

vUARTTxISRWrapper:

	portSAVE_CONTEXT				; Save the context of the current task.

	jarl	vUARTTxISRHandler, lp	; Call the ISR routine.

	portRESTORE_CONTEXT				; Restore the context of the current task -
									; which may be different to the task that
									; was interrupted.


      COMMON INTVEC:CODE:ROOT(2)
      ORG 2c0H
`??vUARTRxISRWrapper??INTVEC 2c0`:
        JR vUARTRxISRWrapper

      COMMON INTVEC:CODE:ROOT(2)
      ORG 2d0H
`??vUARTTxISRWrapper??INTVEC 2d0`:
        JR vUARTTxISRWrapper

	END

⌨️ 快捷键说明

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