?? light.lst
字號:
###############################################################################
# #
# IAR ANSI C/C++ Compiler V6.40.1.53790/W32 for ARM 09/Aug/2012 10:07:33 #
# Copyright 1999-2012 IAR Systems AB. #
# #
# Cpu mode = thumb #
# Endian = little #
# Source file = C:\Users\305030973\Desktop\M4 #
# example\01_light\src\Sources\C\Component_C\light.c #
# Command line = "C:\Users\305030973\Desktop\M4 #
# example\01_light\src\Sources\C\Component_C\light.c" -D #
# IAR -D TWR_K60N512 -lCN "C:\Users\305030973\Desktop\M4 #
# example\01_light\bin\Flash\List\" -lB #
# "C:\Users\305030973\Desktop\M4 #
# example\01_light\bin\Flash\List\" -o #
# "C:\Users\305030973\Desktop\M4 #
# example\01_light\bin\Flash\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 "C:\Program Files\IAR #
# Systems\Embedded Workbench 6.4_2\arm\INC\c\DLib_Config_N #
# ormal.h" -I "C:\Users\305030973\Desktop\M4 #
# example\01_light\src\Sources\H\" -I #
# "C:\Users\305030973\Desktop\M4 #
# example\01_light\src\Sources\H\Component_H\" -I #
# "C:\Users\305030973\Desktop\M4 #
# example\01_light\src\Sources\H\Frame_H\" -I "C:\Program #
# Files\IAR Systems\Embedded Workbench 6.4_2\arm\INC\" -I #
# "C:\Program Files\IAR Systems\Embedded Workbench #
# 6.4_2\arm\INC\CLIB\" -Ol --use_c++_inline #
# List file = C:\Users\305030973\Desktop\M4 #
# example\01_light\bin\Flash\List\light.lst #
# Object file = C:\Users\305030973\Desktop\M4 #
# example\01_light\bin\Flash\Obj\light.o #
# #
# #
###############################################################################
C:\Users\305030973\Desktop\M4 example\01_light\src\Sources\C\Component_C\light.c
1 //-------------------------------------------------------------------------*
2 // 文件名: light.c *
3 // 說 明: 小燈驅(qū)動函數(shù)文件 *
4 //-------------------------------------------------------------------------*
5
6 #include "light.h" //指示燈驅(qū)動程序頭文件
7
8 //-------------------------------------------------------------------------*
9 //函數(shù)名: light_init *
10 //功 能: 初始化指示燈狀態(tài) *
11 //參 數(shù): port:端口名 *
12 // name:指定端口引腳號 *
13 // state:初始狀態(tài),1=高電平,0=低電平 *
14 //返 回: 無 *
15 //說 明: 調(diào)用gpio_init函數(shù) *
16 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
17 void light_init(GPIO_MemMapPtr port,int name,int state)
18 {
\ light_init:
\ 00000000 0xB580 PUSH {R7,LR}
19 gpio_init(port,name,1,state);//初始化指示燈
\ 00000002 0x0013 MOVS R3,R2
\ 00000004 0x2201 MOVS R2,#+1
\ 00000006 0x.... 0x.... BL gpio_init
20 }
\ 0000000A 0xBD01 POP {R0,PC} ;; return
21
22 //-------------------------------------------------------------------------*
23 //函數(shù)名: light_control *
24 //功 能: 控制燈的亮和暗 *
25 //參 數(shù): port:端口名 *
26 // name:指定端口引腳號 *
27 // state:狀態(tài),1=高電平,0=低電平 *
28 //返 回: 無 *
29 //說 明: 調(diào)用gpio_ctrl函數(shù) *
30 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
31 void light_control(GPIO_MemMapPtr port,int name,int state)
32 {
\ light_control:
\ 00000000 0xB580 PUSH {R7,LR}
33 gpio_ctrl(port,name,state); //控制引腳狀態(tài)
\ 00000002 0x.... 0x.... BL gpio_ctrl
34 }
\ 00000006 0xBD01 POP {R0,PC} ;; return
35
36 //-------------------------------------------------------------------------*
37 //函數(shù)名: light_change *
38 //功 能: 狀態(tài)切換:原來"暗",則變"亮";原來"亮",則變"暗" *
39 //參 數(shù): port:端口名 *
40 // name:指定端口引腳號 *
41 //返 回: 無 *
42 //說 明: 調(diào)用gpio_reverse函數(shù) *
43 //-------------------------------------------------------------------------*
\ In section .text, align 2, keep-with-next
44 void light_change(GPIO_MemMapPtr port,int name)
45 {
\ light_change:
\ 00000000 0xB580 PUSH {R7,LR}
46 gpio_reverse(port,name);
\ 00000002 0x.... 0x.... BL gpio_reverse
47 }
\ 00000006 0xBD01 POP {R0,PC} ;; return
Maximum stack usage in bytes:
.cstack Function
------- --------
8 light_change
8 -> gpio_reverse
8 light_control
8 -> gpio_ctrl
8 light_init
8 -> gpio_init
Section sizes:
Bytes Function/Label
----- --------------
8 light_change
8 light_control
12 light_init
28 bytes in section .text
28 bytes of CODE memory
Errors: none
Warnings: none
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -