?? menu.lst
字號:
C51 COMPILER V7.50 MENU 02/05/2007 16:33:25 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE MENU
OBJECT MODULE PLACED IN .\OBJ\MENU.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE MENU.C ROM(COMPACT) OPTIMIZE(9,SPEED) NOAREGS DEFINE(PROJECT=DMO04015800,MC
-U_CFG=BIT5101,VP_IF_CFG=VP_IF_BITEK) PRINT(.\LST\MENU.lst) OBJECT(.\OBJ\MENU.obj)
line level source
1 /* **********************************************************************
2
3 Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd
4
5 All rights are reserved. Reproduction in whole or in parts is
6 prohibited without the prior written consent of the copyright owner.
7 ----------------------------------------------------------------------
8
9 Module: MENU.C
10
11 Purpose: Implementation of MENU.
12
13 Version: 0.01 11:07AM 2005/11/17
14
15 Compiler: Keil 8051 C Compiler v8.01
16
17 Reference:
18 [1] BIT1611B Data Sheet Version 1.0, 2005-11-10,
19 Beyond Innovation Technology
20 [2] MTV121 Super On-Screen-Display for LCD Monitor, Revision 5.0
21 06/29/1999 Myson Technology
22
23 ----------------------------------------------------------------------
24 Modification:
25
26 R0.01 11:02AM 2005/11/17 Jeffrey Chang
27 Reason:
28 1. Original.
29 Solution:
30
31 ********************************************************************** */
32
33 #define _MENU_C_
34
35 /* ------------------------------------
36 Header Files
37 ------------------------------------ */
38 #include "bitek.h"
39 #include "eeprom.h"
40 #include "intrins.h"
41 #include "led.h"
42 #include "menu.h"
43 #include "osd.h"
44 #include "platform.h"
45 #include "timer.h"
46
47
48 /* ------------------------------------
49 Macro Definitions
50 ------------------------------------ */
51
52 /* ------------------------------------
53 Type Definitions
54 ------------------------------------ */
C51 COMPILER V7.50 MENU 02/05/2007 16:33:25 PAGE 2
55
56
57 /* ------------------------------------
58 Variables Definitions
59 ------------------------------------ */
60
61 /* ------------------------------------
62 Function Prototypes
63 ------------------------------------ */
64
65 #if (OSD_CFG == OSD_BIT1611B)
66
67 /* -------------------------------------------------------------------
68 Name: MENU_ClearMenu - (OSD_BIT1611B)
69 Purpose: To clear specified MENU.
70 Passed:
71 UB8 bMenu = menu identifier.
72 Returns: None.
73 Notes:
74 ------------------------------------------------------------------- */
75 void MENU_ClearMenu (UB8 bMenu)
76 {
77 1 if (bMenu & MENU_MESSAGE)
78 1 OSD_FillCharCode(OSD_WINDOW1_BASE, OSD_WINDOW1_AREA, ' ');
79 1
80 1 if (bMenu & MENU_MAINMENU)
81 1 OSD_FillCharCode(OSD_WINDOW2_BASE, OSD_WINDOW2_AREA, ' ');
82 1
83 1 if (bMenu & MENU_SUBMENU)
84 1 OSD_FillCharCode(OSD_WINDOW3_BASE, OSD_WINDOW3_AREA, ' ');
85 1 } /* MENU_ClearMenu */
86
87
88 /* -------------------------------------------------------------------
89 Name: MENU_EnableMenu - (OSD_BIT1611B)
90 Purpose: To enable/disable MENUs.
91 Passed:
92
93 Returns: None.
94 Notes:
95 ------------------------------------------------------------------- */
96 void MENU_EnableMenu (
97 UB8 bMenu,
98 BOOL fOn
99 )
100 {
101 1 if (bMenu & MENU_MAINMENU)
102 1 OSD_EnableWindow(OSD_MAINMENU, fOn);
103 1
104 1 if (bMenu & MENU_SUBMENU)
105 1 OSD_EnableWindow(OSD_SUBMENU, fOn);
106 1
107 1 if (bMenu & MENU_MESSAGE)
108 1 OSD_EnableWindow(OSD_MESSAGE, fOn);
109 1 } /* MENU_EnableMenu */
110
111
112 /* -------------------------------------------------------------------
113 Name: MENU_Init - (OSD_BIT1611B)
114 Purpose: To initialize MENU module.
115 Passed: None.
116 Returns: None.
C51 COMPILER V7.50 MENU 02/05/2007 16:33:25 PAGE 3
117 Notes:
118 ------------------------------------------------------------------- */
119 void MENU_Init (void)
120 {
121 1 bMenuBaseItem = 0;
122 1 bMenuCurrentItem = 0;
123 1 bMenuLastItem = 0;
124 1
125 1 MENU_ShowMainMenuItem(bMenuBaseItem);
126 1 MENU_UpdateMainMenuCursor(bMenuBaseItem, bMenuLastItem, bMenuCurrentItem);
127 1 } /* MENU_Init */
128
129
130 #if (MENU_SHOW_MAINMENUITEM)
131 /* -------------------------------------------------------------------
132 Name: MENU_ShowMainMenuItem - (OSD_BIT1611B)
133 Purpose: To show main menu items.
134 Passed: bBase
135 Returns: None.
136 Notes:
137 ------------------------------------------------------------------- */
138 void MENU_ShowMainMenuItem (UB8 bBase)
139 {
140 1 UB8 bIdx;
141 1
142 1
143 1 for (bIdx = 0; bIdx < OSD_MAINMENU_HEIGHT; bIdx++)
144 1 {
145 2 OSD_ShowMsg(MENU_MAINMENU,
146 2 0,
147 2 bIdx,
148 2 apbMainMenu[ bBase + bIdx ]);
149 2 }
150 1 } /* MENU_ShowMainMenuItem */
151 #endif
152
153
154 #if (MENU_UPDATE_MAINMENUCURSOR)
155 /* -------------------------------------------------------------------
156 Name: MENU_UpdateMainMenuCursor - (OSD_BIT1611B)
157 Purpose: To update the main menu cursor item.
158 Passed: None.
159 Returns: None.
160 Notes:
161 ------------------------------------------------------------------- */
162 void MENU_UpdateMainMenuCursor (
163 UB8 bBase,
164 UB8 bLast,
165 UB8 bCurrent
166 )
168 1 OSD_FillCharAttr(OSD_WINDOW2_BASE + OSD_WINDOW2_WIDTH * (bLast - bBase),
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -