2010-02-24 01:15:03 +08:00
|
|
|
#ifndef ILI9325_H_INCLUDED
|
|
|
|
#define ILI9325_H_INCLUDED
|
|
|
|
|
|
|
|
extern void ili9325_Initializtion(void);
|
|
|
|
extern void ili9325_SetCursor(u16 x,u16 y);
|
|
|
|
extern void ili9325_Clear(u16 Color);
|
|
|
|
|
|
|
|
extern unsigned short ili9325_BGR2RGB(unsigned short c);
|
|
|
|
|
2010-02-24 13:51:53 +08:00
|
|
|
extern void ili9325_WriteRAM_Prepare(void);
|
|
|
|
extern void ili9325_WriteRAM(u16 RGB_Code);
|
2010-02-24 01:15:03 +08:00
|
|
|
extern unsigned short ili9325_ReadGRAM(unsigned short x,unsigned short y);
|
2010-02-24 13:51:53 +08:00
|
|
|
extern void ili9325_WriteReg(u8 LCD_Reg,u16 LCD_RegValue);
|
2010-02-24 01:15:03 +08:00
|
|
|
|
2010-03-06 10:01:59 +08:00
|
|
|
/* If LCD Display in wrong dirction uncomment this option*/
|
|
|
|
#define _ILI_REVERSE_DIRECTION_
|
|
|
|
|
2010-02-24 01:15:03 +08:00
|
|
|
/* LCD is connected to the FSMC_Bank1_NOR/SRAM2 and NE2 is used as ship select signal */
|
2010-02-24 13:51:53 +08:00
|
|
|
/* RS <==> A2 */
|
|
|
|
#define ili9325_REG (*((volatile unsigned short *) 0x64000000)) /* RS = 0 */
|
|
|
|
#define ili9325_RAM (*((volatile unsigned short *) 0x64000008)) /* RS = 1 */
|
2010-02-24 01:15:03 +08:00
|
|
|
|
|
|
|
#endif
|