📄 rearview-modify.lst
字号:
C51 COMPILER V7.20 REARVIEW_MODIFY 11/06/2006 20:13:31 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE REARVIEW_MODIFY
OBJECT MODULE PLACED IN .\obj\Rearview-modify.obj
COMPILER INVOKED BY: C:\Program Files\Keil\C51\BIN\C51.EXE Rearview-modify.C BROWSE DEBUG OBJECTEXTEND PRINT(.\obj\Rearv
-iew-modify.lst) OBJECT(.\obj\Rearview-modify.obj)
line level source
1
2 /*Added by Wayland 2006.10.26*/
3 #include "indash.h"
4
5 #ifdef Rearview
6
7 /*added by Wayland 2006.10.26*/
8 extern bit Rearview_OnOff;
9 extern bit Rearview_Enable;
10 //extern unsigned char Save_CurrentState;
11 extern unsigned char cnt_low;
12 extern unsigned char cnt_high;
13 //extern bit power_state;
14 extern unsigned char SPEAKER;
15 extern char Current_Status;
16 extern char IR_Data_OK_Flag;
17 extern char IR_Repeat_Data_Flag;
18
19 void Rearview_Det(void)
20 {
21 1 //bit IR_state;
22 1 static bit speaker_state;
23 1 static bit power_state;
24 1 EX0=0;
25 1 if(Rearview_Enable)
26 1 {
27 2 if(!REARVIEW_DET)//REARVIEW_DET LOW
28 2 {
29 3 if(cnt_high==0)
30 3 {
31 4 if(cnt_low++>5)
32 4 {
33 5 cnt_low=0;
34 5 if(!Rearview_OnOff)//Rearview mirror haven't opened
35 5 {
36 6 //Save_CurrentState=Current_Status;
37 6 //Current_Status=IS_REARVIEW;
38 6 Rearview_OnOff=ON;
39 6 if(!(speaker_state=SPEAKER))//if speaker open,close it.Otherwise don't care
40 6 Mute_Enable();
41 6 power_state=EEPROM_Receive_25_Bit(OP_READ, EE_POWER_STATUS_ADDR);
42 6 if(power_state)//power still on
43 6 {
44 7 LED_POWER =1;//LED off
45 7 LIGHT_POWER=OFF;
46 7 SOURCE_SEL=ON;
47 7 Delay(500);
48 7
49 7 OSD_Init();
50 7 DA_88347_Init();
51 7 LIGHT_POWER=ON;
52 7 Reset_OSD();
53 7 Delay(1000);
54 7 LED_POWER =0;//LED on
C51 COMPILER V7.20 REARVIEW_MODIFY 11/06/2006 20:13:31 PAGE 2
55 7 Current_Status=IS_NORMAL;
56 7 /*LIGHT_POWER=ON;
57 7 Reset_OSD();
58 7 Delay(1000);
59 7 Current_Status=IS_NORMAL;*/
60 7 }
61 6 else //power is off
62 6 {
63 7 Power_ON();
64 7 SOURCE_SEL=ON;
65 7 Delay(500);
66 7 OSD_Init();
67 7 DA_88347_Init();
68 7 LIGHT_POWER=ON;
69 7 Reset_OSD();
70 7 Delay(1000);
71 7 Current_Status=IS_NORMAL;
72 7 }
73 6 //cnt_low=0;
74 6 }
75 5 else
76 5 {
77 6 cnt_low=0;
78 6 //Rearview_OnOff=ON;
79 6 //goto exit;
80 6 }
81 5 }
82 4 /*else
83 4 {
84 4 EX0=1;//goto exit;
85 4 }*/
86 4 //Rearview_Enable=True;
87 4 }
88 3 else
89 3 {
90 4 cnt_low=0;
91 4 cnt_high=0;
92 4 //goto exit;
93 4 }
94 3 }
95 2 else //REARVIEW_DET high
96 2 {
97 3 if(cnt_low==0)
98 3 {
99 4 if(cnt_high++>5)
100 4 {
101 5 cnt_high=0;
102 5 if(Rearview_OnOff)
103 5 {
104 6
105 6 if(power_state)
106 6 {
107 7 LED_POWER =1; //LED off
108 7 LIGHT_POWER=OFF;
109 7 SOURCE_SEL=OFF;
110 7 Delay(500);
111 7
112 7 OSD_Init();
113 7 DA_88347_Init();
114 7 LIGHT_POWER=ON;
115 7 Reset_OSD();
116 7 Delay(1000);
C51 COMPILER V7.20 REARVIEW_MODIFY 11/06/2006 20:13:31 PAGE 3
117 7 LED_POWER =0;//LED on
118 7 Current_Status=IS_NORMAL;
119 7 /* //SOURCE_SEL=OFF;
120 7 Reset_OSD();
121 7 Current_Status=IS_NORMAL;
122 7 LIGHT_POWER=ON;
123 7 Delay(1000);*/
124 7 }
125 6 else
126 6 {
127 7 LIGHT_POWER = DISABLE;
128 7 PANEL_POWER = DISABLE;
129 7 INVER_POWER = DISABLE;
130 7 FM_POWER = DISABLE;
131 7 LED_POWER = 1;
132 7 SOURCE_SEL=OFF;
133 7 Current_Status = IS_POWER_OFF;
134 7 EEPROM_Transmit_25_Bit(OP_WRITE, EE_POWER_STATUS_ADDR, OFF);
135 7 IR_Repeat_Data_Flag = False;
136 7 IR_Data_OK_Flag = False;
137 7 Delay(1000);
138 7 }
139 6
140 6 if(!(speaker_state))
141 6 Mute_Disable();
142 6 Rearview_OnOff=OFF;
143 6
144 6 }
145 5 else
146 5 {
147 6 cnt_high=0;
148 6 //Rearview_OnOff=OFF;
149 6 //goto exit;
150 6 }
151 5 }
152 4 /*else
153 4 {
154 4 EX0=1;//goto exit;
155 4 }*/
156 4 }
157 3 else
158 3 {
159 4 cnt_low=0;
160 4 cnt_high=0;
161 4 //goto exit;
162 4 }
163 3
164 3 }
165 2
166 2 }
167 1 //exit:
168 1 EX0=1;
169 1 }
170
171 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 289 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
C51 COMPILER V7.20 REARVIEW_MODIFY 11/06/2006 20:13:31 PAGE 4
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = 2 ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -