📄 main.lst
字号:
###############################################################################
# #
# 06/Dec/2008 17:12:52 #
# IAR ARM ANSI C/C++ Compiler V5.11.0.20622/W32 EVALUATION #
# Copyright 1999-2007 IAR Systems. All rights reserved. #
# #
# Cpu mode = thumb #
# Endian = little #
# Source file = E:\ELE\yten\pro\app\main.c #
# Command line = E:\ELE\yten\pro\app\main.c -D EMB_FLASH -lCN #
# E:\ELE\yten\pro\Debug\List\ -lb #
# E:\ELE\yten\pro\Debug\List\ -o #
# E:\ELE\yten\pro\Debug\Obj\ --no_cse --no_unroll #
# --no_inline --no_code_motion --no_tbaa --no_clustering #
# --no_scheduling --debug --endian little --cpu Cortex-M3 #
# -e --fpu None --dlib_config "C:\Program Files\IAR #
# Systems\Embedded Workbench 5.0 #
# Evaluation\ARM\INC\DLib_Config_Normal.h" -I #
# E:\ELE\yten\pro\ -I E:\ELE\yten\pro\..\LIBRARY\INC\ -I #
# "C:\Program Files\IAR Systems\Embedded Workbench 5.0 #
# Evaluation\ARM\INC\" --section .text=.XML -On #
# List file = E:\ELE\yten\pro\Debug\List\main.lst #
# Object file = E:\ELE\yten\pro\Debug\Obj\main.o #
# #
# #
###############################################################################
E:\ELE\yten\pro\app\main.c
1 /*************************************************************************
2 *
3 * Used with ICCARM and AARM.
4 *
5 * (c) Copyright IAR Systems 2007
6 *
7 * File name : main.c
8 * Description : Define main module
9 *
10 * History :
11 * 1. Date : 19, July 2006
12 * Author : Stanimir Bonev
13 * Description : Create
14 *
15 * This example project shows how to use the IAR Embedded Workbench
16 * for ARM to develop code for the IAR STM32-SK board. It shows basic
17 * use of parallel I/O, timer, interrupt controller, ADC and interface to
18 * a LCD HD44780 compatible module.
19 * It show the position of the potentiometer in percents (ADC Channel 15).
20 *
21 * Jumpers:
22 * PWR_SEL - depending of power source
23 *
24 * $Revision: 19278 $
25 **************************************************************************/
26 #define EXT
27 #define MCP2515
28 #define FILE_MAIN
29
30 #include"ytep.h"
\ In section .XML, align 4
\ __??Code16?? __code __interwork void EntrCritSection(void)
\ EntrCritSection:
\ 00000000 0548 LDR.N R0,??EntrCritSection_0 ;; CriticalSecCntr
\ 00000002 0068 LDR R0,[R0, #+0]
\ 00000004 0028 CMP R0,#+0
\ 00000006 00D1 BNE.N ??EntrCritSection_1
\ 00000008 72B6 CPSID i
\ ??EntrCritSection_1:
\ 0000000A 0348 LDR.N R0,??EntrCritSection_0 ;; CriticalSecCntr
\ 0000000C 0068 LDR R0,[R0, #+0]
\ 0000000E 401C ADDS R0,R0,#+1
\ 00000010 0149 LDR.N R1,??EntrCritSection_0 ;; CriticalSecCntr
\ 00000012 0860 STR R0,[R1, #+0]
\ 00000014 7047 BX LR ;; return
\ 00000016 00BF Nop
\ ??EntrCritSection_0:
\ 00000018 ........ DC32 CriticalSecCntr
\ In section .XML, align 4
\ __??Code16?? __code __interwork void ExtCritSection(void)
\ ExtCritSection:
\ 00000000 0448 LDR.N R0,??ExtCritSection_0 ;; CriticalSecCntr
\ 00000002 0068 LDR R0,[R0, #+0]
\ 00000004 401E SUBS R0,R0,#+1
\ 00000006 0349 LDR.N R1,??ExtCritSection_0 ;; CriticalSecCntr
\ 00000008 0860 STR R0,[R1, #+0]
\ 0000000A 0028 CMP R0,#+0
\ 0000000C 00D1 BNE.N ??ExtCritSection_1
\ 0000000E 62B6 CPSIE i
\ ??ExtCritSection_1:
\ 00000010 7047 BX LR ;; return
\ 00000012 00BF Nop
\ ??ExtCritSection_0:
\ 00000014 ........ DC32 CriticalSecCntr
\ In section .bss, align 1
\ Boolean __data B_unit
\ B_unit:
\ 00000000 DS8 1
\ In section .bss, align 1
\ Boolean __data B_Disp
\ B_Disp:
\ 00000000 DS8 1
\ In section .bss, align 1
\ Boolean __data B_TimerOneSec
\ B_TimerOneSec:
\ 00000000 DS8 1
\ In section .bss, align 1
\ Boolean __data B_CANMode
\ B_CANMode:
\ 00000000 DS8 1
\ In section .bss, align 1
\ Boolean __data B_Txd
\ B_Txd:
\ 00000000 DS8 1
\ In section .bss, align 4
\ Int32U __data CriticalSecCntr
\ CriticalSecCntr:
\ 00000000 DS8 4
\ In section .bss, align 4
\ Int8U __data Year[16]
\ Year:
\ 00000000 DS8 16
\ In section .bss, align 4
\ TIMNOTS __data ALAMCREG_History
\ ALAMCREG_History:
\ 00000000 DS8 112
\ In section .bss, align 4
\ Tem __data TemRHA
\ TemRHA:
\ 00000000 DS8 20
\ In section .bss, align 4
\ REC __data RF
\ RF:
\ 00000000 DS8 28
\ In section .bss, align 4
\ KEY __data key
\ key:
\ 00000000 DS8 4
\ In section .bss, align 4
\ _LCD __data LCD
\ LCD:
\ 00000000 DS8 8
\ In section .bss, align 4
\ NOTS __data History[5]
\ History:
\ 00000000 DS8 1512
\ In section .bss, align 4
\ _yt __data _YT
\ _YT:
\ 00000000 DS8 420
\ In section .bss, align 4
\ CAN_BUS __data CANR
\ CANR:
\ 00000000 DS8 16
\ In section .bss, align 4
\ CAN_BUS __data CANT
\ CANT:
\ 00000000 DS8 16
\ In section .bss, align 4
\ pUartFifo_t __data pUart1RxFifo
\ pUart1RxFifo:
\ 00000000 DS8 4
\ In section .bss, align 4
\ pUartFifo_t __data pUart1TxFifo
\ pUart1TxFifo:
\ 00000000 DS8 4
\ In section .bss, align 4
\ UartFifo_t __data Uart1RxFifo
\ Uart1RxFifo:
\ 00000000 DS8 108
\ In section .bss, align 4
\ UartFifo_t __data Uart1TxFifo
\ Uart1TxFifo:
\ 00000000 DS8 108
\ In section .bss, align 4
\ UartLineEvents_t __data Uart1LineEvents
\ Uart1LineEvents:
\ 00000000 DS8 4
31 #include"ytepfunction.h"
\ In section .rodata, align 4
32 const Int16U TEMP_TAB[]={
\ TEMP_TAB:
\ 00000000 EF00EE00ED00 DC16 239, 238, 237, 236, 235, 234, 233, 232, 230, 229, 228, 226, 225
\ EC00EB00EA00
\ E900E800E600
\ E500E400E200
\ E100
\ 0000001A DF00DD00DC00 DC16 223, 221, 220, 218, 216, 214, 212, 210, 208, 206, 204, 202, 199
\ DA00D800D600
\ D400D200D000
\ CE00CC00CA00
\ C700
\ 00000034 C500C300C000 DC16 197, 195, 192, 190, 187, 185, 182, 179, 176, 174, 171, 168, 165
\ BE00BB00B900
\ B600B300B000
\ AE00AB00A800
\ A500
\ 0000004E A2009F009D00 DC16 162, 159, 157, 154, 151, 148, 145, 142, 139, 136, 133, 130, 127
\ 9A0097009400
\ 91008E008B00
\ 880085008200
\ 7F00
\ 00000068 7C0079007600 DC16 124, 121, 118, 116, 113, 110, 107, 104, 102, 99, 97, 94, 91, 89
\ 740071006E00
\ 6B0068006600
\ 630061005E00
\ 5B005900
\ 00000084 570054005200 DC16 87, 84, 82, 80, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 58, 56, 54
\ 50004D004B00
\ 490047004500
\ 430041003F00
\ 3D003B003A00
\ 38003600
\ 000000A6 350033003100 DC16 53, 51, 49, 48, 47, 45, 44, 42, 41, 40, 39, 37, 36, 35, 34, 33, 32
\ 30002F002D00
\ 2C002A002900
\ 280027002500
\ 240023002200
\ 21002000
\ 000000C8 1F001E001D00 DC16 31, 30, 29, 28, 27, 27, 26, 25, 24, 24, 23, 22, 21, 21, 20, 20, 19
\ 1C001B001B00
\ 1A0019001800
\ 180017001600
\ 150015001400
\ 14001300
\ 000000EA 120012001100 DC16 18, 18, 17, 17, 16, 16, 15, 15, 15, 14, 14, 13, 13, 13, 12, 12, 11
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -