klcd.h
上传用户:wealth48
上传日期:2022-06-24
资源大小:1701k
文件大小:1k
- #include "inc/macro.h"
- //#define LCDDisplayPin 0x0010 //GPB4
- #define kLCDWIDTH 640
- #define kLCDHEIGHT 480
- //U32* pLCDBuffer16=(U32*)0x03000000;
- /*#define LCDCON1 (*(volatile unsigned *)0X4D000000)
- #define LCDCON2 (*(volatile unsigned *)0X4D000004)
- #define LCDCON3 (*(volatile unsigned *)0X4D000008)
- #define LCDCON4 (*(volatile unsigned *)0X4D00000C)
- #define LCDCON5 (*(volatile unsigned *)0X4D000010)
- #define LCDSADDR1 (*(volatile unsigned *)0X4D000014)
- #define LCDSADDR2 (*(volatile unsigned *)0X4D000018)
- #define LCDSADDR3 (*(volatile unsigned *)0X4D00001C)*/
- //#define GPGCON (*(volatile unsigned *)0x56000060)
- void kLCD_Refresh(void);
- void kLCD_Part_Refresh(int Wnd_x1,int Wnd_y1,int Wnd_x2,int Wnd_y2);
- void kLCD_Init(void);
- //void LCDDisplayOpen(U8 isOpen);
- void LoadBMP(U16* bmp,char* filename,int bmpWidth,int bmpHeight);
- void PaintBMP(U16* screen,U16* bmp,int bmpX,int bmpY,int bmpWidth,int bmpHeight);
- void ClreaLCD(void);
- U32 getrLCDADDR1(void);