📄 blinky.lst
字号:
###############################################################################
# #
# 10/Jun/2008 15:10:57 #
# 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\Blinky.c #
# Command line = E:\ELE\yten\pro\Blinky.c -lcN #
# E:\ELE\yten\pro\Debug\List\ -o #
# E:\ELE\yten\pro\Debug\Obj\ --debug --endian little #
# --cpu Cortex-M3 -e --fpu None --dlib_config #
# D:\IARARM\ARM\INC\DLib_Config_Normal.h -I #
# E:\ELE\yten\pro\ -I E:\ELE\yten\pro\..\LIBRARY\INC\ -I #
# D:\IARARM\ARM\INC\ -Oh #
# List file = E:\ELE\yten\pro\Debug\List\Blinky.lst #
# Object file = E:\ELE\yten\pro\Debug\Obj\Blinky.o #
# #
# #
###############################################################################
E:\ELE\yten\pro\Blinky.c
1 /******************************************************************************/
2 /* BLINKY.C: LED Flasher */
3 /******************************************************************************/
4 /* This file is part of the uVision/ARM development tools. */
5 /* Copyright (c) 2005-2007 Keil Software. All rights reserved. */
6 /* This software may only be used under the terms of a valid, current, */
7 /* end user licence from KEIL for a compatible version of KEIL software */
8 /* development tools. Nothing else gives you the right to use this software. */
9 /******************************************************************************/
10
11 #include <stm32f10x_lib.h> /* STM32F10x Library Definitions */
12 #include "LCD.h" /* LCD function prototypes */
13 #include <stdio.h>
14
15 /* Import functions from Setup.c */
16 extern void SetupClock (void);
17 extern void SetupADC (void);
18 extern void SetupLED (void);
19 extern void SetupUART (void);
20
21 extern unsigned short int ADC_ConvertedValue;
22
23 extern unsigned char Clock1s;
24
25 int main (void) {
26 int i;
27 int AD_value;
28 int AD_scaled_ex = 0;
29 int AD_scaled;
30
31 SetupClock();
32 SetupADC ();
33 SetupLED ();
34 SetupUART ();
35
36 lcd_init ();
37 lcd_clear ();
38 lcd_print (" YITOA.COM ");
39 set_cursor(0, 1);
40 lcd_print (" yitao ");
41
42 for (i = 0; i < 10000000; i++); /* Wait for initial display */
43
44 while (1) { /* Loop forever */
45 AD_value = ADC_ConvertedValue; /* Read AD value */
46 AD_scaled = AD_value / 52; /* AD value scaled to 0 .. 78 */
47 if (AD_scaled != AD_scaled_ex) { /* If new AD value different than old */
48 AD_scaled_ex = AD_scaled;
49 lcd_bargraph(0, 1, AD_scaled); /* Display bargraph according to AD */
50 }
51
52 /* Printf message with AD value to serial port every 1 second */
53 if (Clock1s) {
54 Clock1s = 0;
55 printf("AD value = 0x%04X\r\n", AD_value);
56 }
57 }
58 }
Maximum stack usage in bytes:
Function .cstack
-------- -------
main 24
Section sizes:
Function/Label Bytes
-------------- -----
main 112
?<Constant " YITOA.COM "> 60
60 bytes in section .rodata
112 bytes in section .text
112 bytes of CODE memory
60 bytes of CONST memory
Errors: none
Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -