📄 guidev_cmpwithlcd.lst
字号:
C51 COMPILER V8.05a GUIDEV_CMPWITHLCD 04/11/2008 14:19:28 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUIDEV_CMPWITHLCD
OBJECT MODULE PLACED IN GUIDEV_CmpWithLCD.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\MemDev\GUIDEV_CmpWithLCD.c LARGE BROWSE MDU_F120 DEBUG OB
-JECTEXTEND PRINT(.\GUIDEV_CmpWithLCD.lst) OBJECT(GUIDEV_CmpWithLCD.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : GUIDevRB.C
16 Purpose : Implementation of Checking for memory devices
17 ----------------------------------------------------------------------
18 Version-Date---Author-Explanation
19 ----------------------------------------------------------------------
20 1.00 000418 RS First version for release (all tests O.K.)
21 ---------------------------END-OF-HEADER------------------------------
22 */
23
24
25 #include <string.h>
26 #include "gui\Core\GUI_Private.h"
27 #include "gui\Core\GUIDebug.h"
28
29 /*
30 Memory device capabilities are compiled only if support for them is enabled.
31 */
32
33 #if GUI_SUPPORT_MEMDEV
/*
*************************************************
* *
* CompareWithLCD *
* *
*************************************************
*/
int GUI_MEMDEV_CompareWithLCD(GUI_MEMDEV_Handle hMem, int*px, int*py, int *pExp, int*pAct) {
/* Make sure memory handle is valid */
if (!hMem) {
hMem = GUI_Context.hDevData;
}
if (!hMem) {
return 1;
}
{
GUI_MEMDEV* pDevData = (GUI_MEMDEV*) GUI_ALLOC_LOCK(hMem); /* Convert to pointer */
C51 COMPILER V8.05a GUIDEV_CMPWITHLCD 04/11/2008 14:19:28 PAGE 2
int y = pDevData->y0;
int x0 = pDevData->x0;
int XMax = pDevData->XSize+x0;
int YMax = pDevData->YSize+y;
int Max;
int MagX = LCD_GetXMag();
int MagY = LCD_GetYMag();
/* Calculate limits */
if (y < 0)
y=0;
if (x0 < 0)
x0=0;
Max = LCD_GET_YSIZE();
if (YMax > Max)
YMax = Max;
Max = LCD_GET_XSIZE();
if (XMax > Max)
XMax = Max;
for (; y < YMax; y++) {
int x=x0;
LCD_PIXELINDEX* pData = GUI_MEMDEV_XY2PTR(x,y);
for (x=x0; x<XMax; x++) {
int Exp = *pData++;
int Act = LCD_L0_GetPixelIndex(x * MagX, y * MagY);
if (Act != Exp) {
*px = x;
*py = y;
*pAct = Act;
*pExp = Exp;
return 1;
}
}
}
}
GUI_ALLOC_UNLOCK(hMem);
return 0;
}
void GUIDEV_CmpWithLCD(void) {}
#else
96
97 void GUIDEV_CmpWithLCD(void) {} /* avoid empty object files */
98
99 #endif /* GUI_SUPPORT_MEMDEV */
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1 ----
CONSTANT SIZE = ---- ----
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 + -