📄 main.lst
字号:
C51 COMPILER V7.50 MAIN 07/03/2006 14:17:03 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN ..\..\OUTPUT\NTSC_SOUTH\Main.obj
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE ..\..\KERNEL\Main.c OPTIMIZE(9,SIZE) BROWSE ORDER INCDIR(..\..\INC\;..\..\U
-I\NTSC_SOUTH\) DEFINE(PABLO,MCU_MTV412M,OLGA) DEBUG OBJECTEXTEND PRINT(..\..\OUTPUT\NTSC_SOUTH\Main.lst) OBJECT(..\..\OU
-TPUT\NTSC_SOUTH\Main.obj)
line level source
1 /******************************************************************************
2 Copyright (c) 2003 MStar Semiconductor, Inc.
3 All rights reserved.
4
5 [Module Name]: Main.c
6 [Date]: 03-Nov-2003
7 [Comment]:
8 Main subroutines.
9 [Reversion History]:
10 *******************************************************************************/
11 //#pragma OPTIMIZE (9,SPEED) BROWSE ORDER DEBUG OBJECTEXTEND CODE SYMBOLS AREGS
12
13 #define _MAIN_C_
14
15 // Common
16
17 #include "define.h"
18 #include "mcu.h"
19
20 #include "userdef.h"
21 #include "userpref.h"
22 // External
23 #include "uart.h"
24 #include "debug.h"
25
26
27
28 #include "global.h"
29 #include "isr.h"
30 #include "keypad.h"
31 #include "ram.h"
32 #include "common.h"
33
34 #include "ir.h"
35
36 // Internal
37 #include "main.h"
38
39 ////////////////////////////////
40 // Main program
41 ////////////////////////////////
42 void main(void)
43 {
44 1 PowerOnInitial();
45 1 McuInit();
46 1
47 1 putstr( "\r\n main loop!" );
48 1 while (1)
49 1 {
50 2 uartDecodeCommand(); // uart debug command
51 2 if(!pinRead_Plug)
52 2 {
53 3 putstr( "\r\n READ!" );
C51 COMPILER V7.50 MAIN 07/03/2006 14:17:03 PAGE 2
54 3 ClrLed_OK();
55 3 ClrLed_WRITING();
56 3
57 3 SetLed_READING();
58 3 usrLoadVariableFromEEPROM();
59 3
60 3 g_bEEpromSaveDone=1;
61 3 SetLed_OK();
62 3
63 3 }
64 2 else if(!pinWrite_Plug)
65 2 {
66 3 putstr( "\r\n WRITE!" );
67 3 ClrLed_OK();
68 3 ClrLed_READING();
69 3
70 3 SetLed_WRITING();
71 3 usrInitVariableFromEEPROM();
72 3 g_bEEpromSaveDone=1;
73 3 SetLed_OK();
74 3 }
75 2 else if(!pinReset_Plug)
76 2 {
77 3 putstr( "\r\n RESET!" );
78 3 SetLed_OK();
79 3 SetLed_READING();
80 3 SetLed_WRITING();
81 3 }
82 2
83 2 /*
84 2 // stop main loop for debug (Uart Command Test Command 0x51)
85 2 if (g_bDebugProgStopFlag)
86 2 continue;
87 2
88 2 SecondTick();
89 2 if (g_b16msTickFlag)
90 2 {
91 2 irPolling();
92 2 irDecodeNumKey(); // ir decode number key
93 2 keyDetectHandler(); // detect key handler
94 2 g_b16msTickFlag = 0;
95 2 }
96 2 irDecodeCommand(); // ir decode command
97 2 #if IR_CODE_DEBUG_EN
98 2 irDebugHandler();
99 2 #endif*/
100 2 } // while loop
101 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 103 ----
CONSTANT SIZE = 47 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -