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

📄 irq_usart.s

📁 详细介绍了arm7-at91r40008,的开发全过程
💻 S
字号:
;------------------------------------------------------------------------------
;-         ATMEL Microcontroller Software Support  -  ROUSSET  -
;------------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;------------------------------------------------------------------------------
;- File source          : irq_usart.s
;- Object               : Assembler Usart Interrupt Handler.
;-
;- 1.0 14/Feb/03 JPP     : Creation
;------------------------------------------------------------------------------

;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
	AREA        itHandler, CODE, READONLY

	INCLUDE		../../../parts/r40008/r40008.inc

    INCLUDE   	irq_arm.mac

;------------------------------------------------------------------------------
;- Function             : usart0_asm_irq_handler
;- Treatments           : USART0 Controller Interrupt Handler.
;- Called Functions     : Usart0_c_irq_handler
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
	EXPORT usart0_asm_irq_handler
	IMPORT Usart0_c_irq_handler
	IMPORT USART0_DESC

usart0_asm_irq_handler

;- Manage Exception Entry
	IRQ_ENTRY

;- Call the PIO Interrupt C handler
	ldr         r0, =USART0_DESC
	ldr         r1, =Usart0_c_irq_handler
	mov         r14, pc
	bx          r1

;- Irq exit
;- Manage Exception Exit
	b			exit_irq

;------------------------------------------------------------------------------
;- Function             : usart1_asm_irq_handler
;- Treatments           : USART1 Controller Interrupt Handler.
;- Called Functions     : Usart1_c_irq_handler
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
	EXPORT usart1_asm_irq_handler
	IMPORT Usart1_c_irq_handler
	IMPORT USART1_DESC

usart1_asm_irq_handler

;- Manage Exception Entry
	IRQ_ENTRY

;- Call the PIO Interrupt C handler
	ldr         r0, =USART1_DESC
	ldr         r1, =Usart1_c_irq_handler
	mov         r14, pc
	bx          r1

;- Irq exit
exit_irq

;- Manage Exception Exit
	IRQ_EXIT

    END

⌨️ 快捷键说明

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