adc_irq.s

来自「ATEML公司EB40/40a/42/63/55开发板部分测试程序。」· S 代码 · 共 74 行

S
74
字号
#;------------------------------------------------------------------------------
#;-         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          : adc_irq.s
#;- Object               : Assembler ADC Interrupt Handler
#;-
#;- 1.0 28/08/00 JPP     : Creation
#;------------------------------------------------------------------------------

#            AREA        reset, CODE, READONLY, INTERWORK

            .INCLUDE     "../../drivers/analog/adc_irq.mac"

#;------------------------------------------------------------------------------
#;- Treatments       : Analog Interrupt Handlers
#;- Operations       :
#;------------------------------------------------------------------------------

#            AT91_ANALOG_ADC_ASM_HANDLER    at91_c_handler_adc,it_adc,at91_asm_irq_adc

                .extern      at91_c_handler_adc
                .extern      it_adc
                .global      at91_asm_irq_adc
at91_asm_irq_adc:

                IRQ_ENTRY

                ldr     r1, =at91_c_handler_adc             		/* C function Handler */
                ldr     r0, =it_adc       	/* function param */
                mov     r14, pc
                bx      r1                              /* Call in Interworking */

                IRQ_EXIT

#            AT91_TIMER_ASM_HANDLER         at91_c_handler_timer,it_timer,at91_asm_irq_timer_loop

                .extern      at91_c_handler_timer
                .extern      it_timer
                .global      at91_asm_irq_timer_loop
at91_asm_irq_timer_loop:

                IRQ_ENTRY

                ldr     r1, =at91_c_handler_timer                		/* C function Handler */
                ldr     r0, =it_timer        /* function param */
                mov     r14, pc
                bx      r1                                  /* Call in Interworking */

                IRQ_EXIT

#            AT91_TIMER_ASM_HANDLER         at91_c_handler_check_pdc,it_timer,at91_asm_irq_check_pdc

                .extern      at91_c_handler_check_pdc
                .extern      it_timer
                .global      at91_asm_irq_check_pdc
at91_asm_irq_check_pdc:

                IRQ_ENTRY

                ldr     r1, =at91_c_handler_check_pdc                		/* C function Handler */
                ldr     r0, =it_timer         /* function param */
                mov     r14, pc
                bx      r1                                  /* Call in Interworking */

                IRQ_EXIT

#            END

⌨️ 快捷键说明

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