📄 isr.s
字号:
///////////////////////////////////////////////////////////////////////////////
// /
// IAR ANSI C/C++ Compiler V6.10.1.52143/W32 for ARM 16/Apr/2011 20:57:45 /
// Copyright 1999-2010 IAR Systems AB. /
// /
// Cpu mode = thumb /
// Endian = little /
// Source file = E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\src\Sources\C\isr.c /
// Command line = "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\src\Sources\C\isr.c" -D /
// IAR -D TWR_K60N512 -lCN "E:\Project\15_K60\03_Software\ /
// 02_My program\K60_IAR\03_uart_int\bin\Ram\List\" -lB /
// "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\bin\Ram\List\" -o /
// "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\bin\Ram\Obj\" --no_cse /
// --no_unroll --no_inline --no_code_motion --no_tbaa /
// --no_clustering --no_scheduling --debug /
// --endian=little --cpu=Cortex-M4 -e --fpu=None /
// --dlib_config D:\iar\arm\INC\c\DLib_Config_Normal.h -I /
// "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\src\Sources\H\" -I /
// "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\src\Sources\H\Component_H\" /
// -I "E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\src\Sources\H\Frame_H\" /
// -Ol --use_c++_inline /
// List file = E:\Project\15_K60\03_Software\02_My /
// program\K60_IAR\03_uart_int\bin\Ram\List\isr.s /
// /
// /
///////////////////////////////////////////////////////////////////////////////
NAME isr
EXTERN uart_re1
EXTERN uart_send1
PUBLIC uart3_isr
// E:\Project\15_K60\03_Software\02_My program\K60_IAR\03_uart_int\src\Sources\C\isr.c
// 1 //-------------------------------------------------------------------------*
// 2 // 文件名: isr.c *
// 3 // 说 明: 中断处理例程 *
// 4 //---------------苏州大学飞思卡尔嵌入式系统实验室2011年--------------------*
// 5
// 6 #include "includes.h"
// 7
// 8 //-------------------------------------------------------------------------*
// 9 //函数名: uart3_isr *
// 10 //功 能: 串口3数据接收中断例程 *
// 11 //说 明: 无 *
// 12 //-------------------------------------------------------------------------*
SECTION `.text`:CODE:NOROOT(2)
THUMB
// 13 void uart3_isr(void)
// 14 {
uart3_isr:
PUSH {R7,LR}
// 15 uint8 ch;
// 16 DisableInterrupts; //关总中断
CPSID i
// 17 //接收一个字节数据并回发
// 18 if(uart_re1 (UART3,&ch))
ADD R1,SP,#+0
LDR.N R0,??uart3_isr_0 ;; 0x4006d000
BL uart_re1
CMP R0,#+0
BEQ.N ??uart3_isr_1
// 19 uart_send1(UART3,ch);
LDRB R1,[SP, #+0]
LDR.N R0,??uart3_isr_0 ;; 0x4006d000
BL uart_send1
// 20 EnableInterrupts; //开总中断
??uart3_isr_1:
CPSIE i
// 21 }
POP {R0,PC} ;; return
Nop
DATA
??uart3_isr_0:
DC32 0x4006d000
SECTION __DLIB_PERTHREAD:DATA:REORDER:NOROOT(0)
SECTION __DLIB_PERTHREAD_init:DATA:REORDER:NOROOT(0)
END
//
// 36 bytes in section .text
//
// 36 bytes of CODE memory
//
//Errors: none
//Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -