ugfx/drivers/gdisp/SSD1963
mobyfab da83b0955f Some cleaning.
Fixed and tested DMA blitarea for SSD1963.
2012-09-18 22:55:02 +02:00
..
gdisp_lld_config.h Some cleaning. 2012-09-18 22:55:02 +02:00
gdisp_lld_panel.h header adjustments on SSD1963 2012-09-03 00:52:40 +02:00
gdisp_lld.c Some cleaning. 2012-09-18 22:55:02 +02:00
gdisp_lld.mk Adding SSD1963 2012-08-30 22:40:28 +02:00
readme.txt More info in the readme file. 2012-09-18 12:45:32 +02:00
ssd1963.h Adding GPIO to SSD1963 2012-09-04 12:51:35 +02:00

To use this driver:

1. Add in your halconf.h:
	a) #define HAL_USE_GDISP	TRUE
	b) Any optional high level driver defines (see gdisp.h) eg: #define GDISP_NEED_MULTITHREAD TRUE
	c) One (only) of:
		#define LCD_USE_GPIO
		#define LCD_USE_FSMC
  d) If you want to use DMA (only works with FSMC):
    #define LCD_USE_DMA
    #define LCD_DMA_STREAM STM32_DMA2_STREAM6 //You can change the DMA channel according to your needs
    
2. Edit gdisp_lld_panel.h with your panel properties

3. To your makefile add the following lines:
	include $(LCDLIB)/drivers/gdisp/SSD1963/gdisp_lld.mk
  
  
Example FSMC config with DMA:

#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 272

#define LCD_USE_FSMC

#define LCD_USE_DMA
#define LCD_DMA_STREAM STM32_DMA2_STREAM6

#if defined(LCD_USE_GPIO)

    #define LCD_CMD_PORT GPIOC
    #define LCD_DATA_PORT GPIOD

    #define LCD_CS 0
    #define LCD_RS 1
    #define LCD_WR 2
    #define LCD_RD 3
#endif