📄 light.lst
字号:
###############################################################################
# #
# IAR ANSI C/C++ Compiler V6.10.1.52143/W32 for ARM 16/Apr/2011 20:57:46 #
# 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\Component_C\li #
# ght.c #
# Command line = "E:\Project\15_K60\03_Software\02_My #
# program\K60_IAR\03_uart_int\src\Sources\C\Component_C\li #
# ght.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\light.lst #
# Object file = E:\Project\15_K60\03_Software\02_My #
# program\K60_IAR\03_uart_int\bin\Ram\Obj\light.o #
# #
# #
###############################################################################
E:\Project\15_K60\03_Software\02_My program\K60_IAR\03_uart_int\src\Sources\C\Component_C\light.c
1 //-------------------------------------------------------------------------*
2 // 文件名: light.c *
3 // 说 明: 小灯驱动函数文件 *
4 //-------------------------------------------------------------------------*
5
6 #include "light.h" //指示灯驱动程序头文件
7
8 //-------------------------------------------------------------------------*
9 //函数名: light_init *
10 //功 能: 初始化指示灯状态 *
11 //参 数: port:端口名 *
12 // name:指定端口引脚号 *
13 // state:初始状态,1=高电平,0=低电平 *
14 //返 回: 无 *
15 //说 明: 调用gpio_init函数 *
16 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
17 void light_init(GPIO_MemMapPtr port,int name,int state)
18 {
\ light_init:
\ 00000000 80B5 PUSH {R7,LR}
19 gpio_init(port,name,1,state);//初始化指示灯
\ 00000002 1300 MOVS R3,R2
\ 00000004 0122 MOVS R2,#+1
\ 00000006 ........ BL gpio_init
20 }
\ 0000000A 01BD POP {R0,PC} ;; return
21
22 //-------------------------------------------------------------------------*
23 //函数名: light_control *
24 //功 能: 控制灯的亮和暗 *
25 //参 数: port:端口名 *
26 // name:指定端口引脚号 *
27 // state:状态,1=高电平,0=低电平 *
28 //返 回: 无 *
29 //说 明: 调用gpio_ctrl函数 *
30 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
31 void light_control(GPIO_MemMapPtr port,int name,int state)
32 {
\ light_control:
\ 00000000 80B5 PUSH {R7,LR}
33 gpio_ctrl(port,name,state); //控制引脚状态
\ 00000002 ........ BL gpio_ctrl
34 }
\ 00000006 01BD POP {R0,PC} ;; return
35
36 //-------------------------------------------------------------------------*
37 //函数名: light_change *
38 //功 能: 状态切换:原来"暗",则变"亮";原来"亮",则变"暗" *
39 //参 数: port:端口名 *
40 // name:指定端口引脚号 *
41 //返 回: 无 *
42 //说 明: 调用gpio_reverse函数 *
43 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
44 void light_change(GPIO_MemMapPtr port,int name)
45 {
\ light_change:
\ 00000000 80B5 PUSH {R7,LR}
46 gpio_reverse(port,name);
\ 00000002 ........ BL gpio_reverse
47 }
\ 00000006 01BD POP {R0,PC} ;; return
Maximum stack usage in bytes:
Function .cstack
-------- -------
light_change 8
light_control 8
light_init 8
Section sizes:
Function/Label Bytes
-------------- -----
light_init 12
light_control 8
light_change 8
28 bytes in section .text
28 bytes of CODE memory
Errors: none
Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -