📄 gui_sellcd.lst
字号:
C51 COMPILER V8.05a GUI_SELLCD 04/11/2008 14:18:47 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_SELLCD
OBJECT MODULE PLACED IN GUI_SelLCD.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_SelLCD.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTEN
-D PRINT(.\GUI_SelLCD.lst) OBJECT(GUI_SelLCD.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 : GUI_SelLCD.C
16 Purpose : emWin GSC, selection of LCD display
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include <stddef.h> /* needed for definition of NULL */
22 #include "gui\Core\GUI_Private.h"
23 #include "gui\Core\GUIDebug.h"
24 #include "gui\Core\LCD_Private.h" /* Required for configuration, APIList */
25
26
27 #if (LCD_NUM_DISPLAYS > 1) && (GUI_SUPPORT_MEMDEV)
/*
*************************************************
* *
* LCD Device *
* (if memory devices are supported) *
* *
*************************************************
*/
const tLCDDEV_APIList LCD_L0_1_APIList = {
#if LCD_YMAG_1 == 1
LCD_L0_1_Color2Index,
LCD_L0_1_DrawBitmap,
LCD_L0_1_DrawHLine,
LCD_L0_1_DrawVLine,
LCD_L0_1_FillRect,
LCD_L0_1_GetPixelIndex,
LCD_L0_1_GetRect,
LCD_L0_1_Index2Color,
LCD_L0_1_SetPixelIndex,
LCD_L0_1_XorPixel
#else
LCD_L0_1_Color2Index,
LCD_L0_1_MAG_DrawBitmap,
LCD_L0_1_MAG_DrawHLine,
LCD_L0_1_MAG_DrawVLine,
C51 COMPILER V8.05a GUI_SELLCD 04/11/2008 14:18:47 PAGE 2
LCD_L0_1_MAG_FillRect,
LCD_L0_1_MAG_GetPixelIndex,
LCD_L0_1_GetRect, /* Original routine is o.k. here, since we use the logical
coordinates for clipping, which are not magnified */
LCD_L0_1_Index2Color,
LCD_L0_1_MAG_SetPixelIndex,
LCD_L0_1_MAG_XorPixel
#endif
};
/***********************************************************
*
* GUI_SelLCD
*
************************************************************
*/
const tLCDDEV_APIList * const aAPI[] = {
&LCD_L0_APIList
#if LCD_NUM_DISPLAYS >1
,&LCD_L0_1_APIList
#endif
};
unsigned int GUI_SelLCD(unsigned int Index) {
unsigned int OldIndex = 0;
if (Index < LCD_NUM_DISPLAYS) {
GUI_LOCK();
GUI_SetDefault();
OldIndex = (GUI_Context.pDeviceAPI == aAPI[0]) ? 0 : 1;
GUI_Context.pDeviceAPI = aAPI[Index];
LCD_SetClipRectMax();
}
GUI_UNLOCK();
return OldIndex;
}
#else
98
99 void GUI_SelLCD_(void) {}
100
101 #endif
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 + -