📄 lcdp555.lst
字号:
C51 COMPILER V8.05a LCDP555 04/11/2008 14:18:21 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE LCDP555
OBJECT MODULE PLACED IN LCDP555.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\ConvertColor\LCDP555.c LARGE BROWSE MDU_F120 DEBUG OBJECT
-EXTEND PRINT(.\LCDP555.lst) OBJECT(LCDP555.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 : LCD555.C
16 Purpose : Color conversion routines for LCD-drivers
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20 #include <stddef.h> /* needed for definition of NULL */
21 #include "gui\Core\LCD_Protected.h" /* inter modul definitions */
22
23 /*********************************************************************
24 *
25 * LCD_FIXEDPALETTE == 555
26 *
27 * 2^15 = 32768 basic colors
28 *
29 **********************************************************************
30 */
31
32 int LCD_Color2Index_555(LCD_COLOR Color) {
33 1 int r,g,b;
34 1 r = (Color>>3) &0x1f;
35 1 g = (Color>>11) &0x1f;
36 1 b = (Color>>19) &0x1f;
37 1 return r+(g<<5)+(b<<10);
38 1 }
39
40 LCD_COLOR LCD_Index2Color_555(int Index) {
41 1 int r,g,b;
42 1 r = (Index&(0x1f<<0)) << ( 3);
43 1 g = (Index&(0x1f<<5)) >> (5-3);
44 1 b = (Index&(0x1f<<10)) >>(10-3);
45 1 return r+(g<<8)+(((U32)b)<<16);
46 1 }
47
48
49
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 254 ----
CONSTANT SIZE = ---- ----
C51 COMPILER V8.05a LCDP555 04/11/2008 14:18:21 PAGE 2
XDATA SIZE = ---- 10
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 + -