diff options
author | mobyfab <mobyfab@free.fr> | 2012-09-18 12:45:32 +0200 |
---|---|---|
committer | mobyfab <mobyfab@free.fr> | 2012-09-18 12:45:32 +0200 |
commit | 8e89654081ff1f62690f09a2fbcc23f0aed1f0a0 (patch) | |
tree | f87363149d03183d4436a9a48bb360da2629c6a0 /drivers/gdisp | |
parent | 9718d39d30ae3519a1875eaf9d567753818fe497 (diff) | |
download | uGFX-8e89654081ff1f62690f09a2fbcc23f0aed1f0a0.tar.gz uGFX-8e89654081ff1f62690f09a2fbcc23f0aed1f0a0.tar.bz2 uGFX-8e89654081ff1f62690f09a2fbcc23f0aed1f0a0.zip |
More info in the readme file.
Diffstat (limited to 'drivers/gdisp')
-rw-r--r-- | drivers/gdisp/SSD1963/readme.txt | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/drivers/gdisp/SSD1963/readme.txt b/drivers/gdisp/SSD1963/readme.txt index 7803cda0..f19ce24c 100644 --- a/drivers/gdisp/SSD1963/readme.txt +++ b/drivers/gdisp/SSD1963/readme.txt @@ -2,11 +2,37 @@ 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: GDISP_NEED_MULTITHREAD + b) Any optional high level driver defines (see gdisp.h) eg: #define GDISP_NEED_MULTITHREAD TRUE c) One (only) of: - #define LCD_USE_GPIO (Work in progress) + #define LCD_USE_GPIO #define LCD_USE_FSMC - d) Edit gdisp_lld_panel.h with your panel properties + 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 -2. To your makefile add the following lines: - include $(LCDLIB)/drivers/gdisp/SSD1963/gdisp_lld.mk
\ No newline at end of file +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
\ No newline at end of file |