ili9325.h 870 B

1234567891011121314151617181920212223
  1. #ifndef ILI9325_H_INCLUDED
  2. #define ILI9325_H_INCLUDED
  3. extern void ili9325_Initializtion(void);
  4. extern void ili9325_SetCursor(u16 x,u16 y);
  5. extern void ili9325_Clear(u16 Color);
  6. extern unsigned short ili9325_BGR2RGB(unsigned short c);
  7. extern void ili9325_WriteRAM_Prepare(void);
  8. extern void ili9325_WriteRAM(u16 RGB_Code);
  9. extern unsigned short ili9325_ReadGRAM(unsigned short x,unsigned short y);
  10. extern void ili9325_WriteReg(u8 LCD_Reg,u16 LCD_RegValue);
  11. /* If LCD Display in wrong dirction uncomment this option*/
  12. #define _ILI_REVERSE_DIRECTION_
  13. /* LCD is connected to the FSMC_Bank1_NOR/SRAM2 and NE2 is used as ship select signal */
  14. /* RS <==> A2 */
  15. #define ili9325_REG (*((volatile unsigned short *) 0x64000000)) /* RS = 0 */
  16. #define ili9325_RAM (*((volatile unsigned short *) 0x64000008)) /* RS = 1 */
  17. #endif