📄 mck_isr.arm
字号:
;------------------------------------------------------------------------------
;- 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 : mck_isr.arm
;- Object : Assembler APMC Clock Interrupt Handler.
;-
;- 1.0 05/mars/03 JPP : Creation for Green Hills
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
.section ".text", .text
.align 4
#include "include/AT91M55800A_inc.h"
#include "irq_ghs.mac"
;------------------------------------------------------------------------------
;- Function : osc32k_asm_handler
;- Treatments : 32kHz mode Handler to run with Slow Clock Source
;- Called Functions : osc32k_c_handler
;- Called Macros : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
.globl osc32k_asm_handler
osc32k_asm_handler:
.import osc32k_c_handler
;- Manage Exception Entry
IRQ_ENTRY
;- Call C handler
ldr r0, =osc32k_c_handler
mov r14, pc
bx r0
;- Manage Exception Exit
b irq_exit
.type osc32k_asm_handler,$function
.size osc32k_asm_handler,.-osc32k_asm_handler
;------------------------------------------------------------------------------
;- Function : osc32k_osc16m_asm_handler
;- Treatments : Set main oscillator
;- Called Functions : osc16m_c_handler
;- Called Macros : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
.import osc32k_osc16m_c_handler
.globl osc32k_osc16m_asm_handler
osc32k_osc16m_asm_handler:
;- Manage Exception Entry
IRQ_ENTRY
;- Call C handler
ldr r0, =osc32k_osc16m_c_handler
mov r14, pc
bx r0
;- Manage Exception Exit
b irq_exit
.type osc32k_osc16m_asm_handler,$function
.size osc32k_osc16m_asm_handler,.-osc32k_osc16m_asm_handler
;------------------------------------------------------------------------------
;- Function : osc32k_pll_asm_handler
;- Treatments :
;- Called Functions :
;- Called Macros :
;------------------------------------------------------------------------------
.import osc32k_pll_c_handler
.globl osc32k_pll_asm_handler
osc32k_pll_asm_handler:
;- Manage Exception Entry
IRQ_ENTRY
;- Call C handler
ldr r0, =osc32k_pll_c_handler
mov r14, pc
bx r0
;- Irq exit
irq_exit:
;- Manage Exception Exit
IRQ_EXIT
.type osc32k_pll_asm_handler,$function
.size osc32k_pll_asm_handler,.-osc32k_pll_asm_handler
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -