2440lcd.h

来自「ucosii 的三星arm9 s3c2440 源码」· C头文件 代码 · 共 43 行

H
43
字号
#ifndef __2440LCD_H__
#define __2440LCD_H__


#define LCDFRAMEBUFFER 	0x33000000 //_NONCACHE_STARTADDRESS 

// 16bit 5-6-5
#define	RGB(R,G,B)      (((R)<<11)|((G)<<5)|(B))

#define	BLACK	        RGB( 0, 0, 0)
#define	RED		        RGB(31, 0, 0)
#define	GREEN	        RGB( 0,50, 0)
#define	BLUE	        RGB( 0, 0,31)
#define	VIOLET	      	RGB(31, 0,31)
#define	GRAY	        RGB(10,10,10)
#define YELLOW			RGB(31,63, 0)
#define	WHITE	        RGB(31,63,31)

#define LCD_XSIZE 	  (480)
#define LCD_YSIZE     (272)
#define SCR_XSIZE 	  (LCD_XSIZE*1)   //for virtual screen  
#define SCR_YSIZE	  (LCD_YSIZE*1)

//=========================================================================
// MACRO       : LOW21()
// Description : 窍困 21厚飘父 巢扁绊 唱赣瘤绰 努府绢茄促.
// Param       : n - 措惑 箭磊
//=========================================================================
#define LOW21(n) 		((n) & 0x1fffff)	

//=========================================================================
// Variables
// Frame buffer and Memory buffer
//=========================================================================
typedef unsigned short (*FB_ADDR)[LCD_XSIZE];


void TL_Init		(int width, int height, int virtual_width, int virtual_height);
void TL_PutPixel	(int x, int y, int color);
void TL_FillFrame	(int color);
void TL_Frame	(int color);

#endif /*__2440LCD_H__*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?