📄 lcd_l0_generic.lst
字号:
C51 COMPILER V8.05a LCD_L0_GENERIC 04/11/2008 14:19:02 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE LCD_L0_GENERIC
OBJECT MODULE PLACED IN LCD_L0_Generic.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\LCD_L0_Generic.c LARGE BROWSE MDU_F120 DEBUG OBJECTE
-XTEND PRINT(.\LCD_L0_Generic.lst) OBJECT(LCD_L0_Generic.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 : LCD_L0_Generic.h
16 Purpose : Color conversion routines for LCD-drivers
17 This file may not be compiled by itself, bud needs
18 to be included in every LCD driver
19 ---------------------------END-OF-HEADER------------------------------
20 */
21
22 #include <stddef.h> /* needed for definition of NULL */
23 #include "gui\Core\LCD_Private.h" /* private modul definitions & config */
24 #include "gui\Core\GUI_Private.h"
25 #include "gui\Core\GUIDebug.h"
26
27 /*
28 *********************************************************
29 * *
30 * Color info *
31 * *
32 *********************************************************
33 */
34
35
36 #if (LCD_FIXEDPALETTE==0)
static
#if !LCD_PHYSCOLORS_IN_RAM
const
#endif
LCD_COLOR LCD_PhysColors[] = { LCD_PHYSCOLORS };
const LCD_PHYSPALETTE LCD_PhysPal = { LCD_NUM_COLORS, &LCD_PhysColors[0] };
#endif
44
45 #if LCD_NUM_DISPLAYS > 1
#if (LCD_FIXEDPALETTE_1 == 0)
static const LCD_COLOR LCD_PhysColors_[] = { LCD_PHYSCOLORS_1 };
const LCD_PHYSPALETTE LCD_PhysPal_ = { LCD_NUM_COLORS_1, &LCD_PhysColors_1[0] };
#endif
#endif
51
52 /*
53 *************************************************
54 * *
C51 COMPILER V8.05a LCD_L0_GENERIC 04/11/2008 14:19:02 PAGE 2
55 * LCD Device *
56 * (if memory devices are supported) *
57 * *
58 *************************************************
59 */
60 #if GUI_SUPPORT_MEMDEV
const tLCDDEV_APIList LCD_L0_APIList = {
#if LCD_YMAG==1
LCD_L0_Color2Index,
LCD_L0_DrawBitmap,
LCD_L0_DrawHLine,
LCD_L0_DrawVLine,
LCD_L0_FillRect,
LCD_L0_GetPixelIndex,
LCD_L0_GetRect,
LCD_L0_Index2Color,
LCD_L0_SetPixelIndex,
LCD_L0_XorPixel
#else
LCD_L0_Color2Index,
LCD_L0_MAG_DrawBitmap,
LCD_L0_MAG_DrawHLine,
LCD_L0_MAG_DrawVLine,
LCD_L0_MAG_FillRect,
LCD_L0_MAG_GetPixelIndex,
LCD_L0_GetRect, /* Original routine is o.k. here, since we use the logical
coordinates for clipping, which are not magnified */
LCD_L0_Index2Color,
LCD_L0_MAG_SetPixelIndex,
LCD_L0_MAG_XorPixel,
#endif
};
#endif
91
92
93
94
95 /*********************************************************************
96 *
97 * Color conversion routines display 0
98 *
99 **********************************************************************
100 */
101
102 #if LCD_FIXEDPALETTE == 0
#define COLOR2INDEX(Color) LCD_Color2Index_0(Color, &LCD_PhysPal)
#define INDEX2COLOR(Index) LCD_Index2Color_0(Index, &LCD_PhysPal)
#elif LCD_FIXEDPALETTE == 1
106 #define COLOR2INDEX(Color) LCD_Color2Index_1(Color)
107 #define INDEX2COLOR(Index) LCD_Index2Color_1(Index)
108 #elif LCD_FIXEDPALETTE == 2
#define COLOR2INDEX(Color) LCD_Color2Index_2(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_2(Index)
#elif LCD_FIXEDPALETTE == 4
#define COLOR2INDEX(Color) LCD_Color2Index_4(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_4(Index)
#elif (LCD_FIXEDPALETTE == 111) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_111(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_111(Index)
C51 COMPILER V8.05a LCD_L0_GENERIC 04/11/2008 14:19:02 PAGE 3
#elif (LCD_FIXEDPALETTE == 111) && (LCD_SWAP_RB)
#define COLOR2INDEX(Color) LCD_Color2Index_M111(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M111(Index)
#elif (LCD_FIXEDPALETTE == 222) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_222(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_222(Index)
#elif (LCD_FIXEDPALETTE == 222) && (LCD_SWAP_RB==1)
#define COLOR2INDEX(Color) LCD_Color2Index_M222(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M222(Index)
#elif (LCD_FIXEDPALETTE == 233) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_233(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_233(Index)
#elif (LCD_FIXEDPALETTE == 233) && (LCD_SWAP_RB==1)
#define COLOR2INDEX(Color) LCD_Color2Index_M233(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M233(Index)
#elif (LCD_FIXEDPALETTE == 323) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_323(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_323(Index)
#elif (LCD_FIXEDPALETTE == 323) && (LCD_SWAP_RB==1)
#define COLOR2INDEX(Color) LCD_Color2Index_M323(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M323(Index)
#elif (LCD_FIXEDPALETTE == 332) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_332(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_332(Index)
#elif (LCD_FIXEDPALETTE == 332) && (LCD_SWAP_RB==1)
#define COLOR2INDEX(Color) LCD_Color2Index_M332(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M332(Index)
#elif (LCD_FIXEDPALETTE == 444) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_444(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_444(Index)
#elif (LCD_FIXEDPALETTE == 555) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_555(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_555(Index)
#elif (LCD_FIXEDPALETTE == 555) && (LCD_SWAP_RB)
#define COLOR2INDEX(Color) LCD_Color2Index_M555(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_M555(Index)
#elif (LCD_FIXEDPALETTE == 565) && (LCD_SWAP_RB==0)
#define COLOR2INDEX(Color) LCD_Color2Index_565(Color)
#define INDEX2COLOR(Index) LCD_Index2Color_565(Index)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -