2012-08-30 20:40:28 +00:00
|
|
|
To use this driver:
|
|
|
|
|
|
|
|
1. Add in your halconf.h:
|
2012-10-20 23:47:11 +00:00
|
|
|
a) #define GFX_USE_GDISP TRUE
|
2012-09-18 10:45:32 +00:00
|
|
|
b) Any optional high level driver defines (see gdisp.h) eg: #define GDISP_NEED_MULTITHREAD TRUE
|
2012-08-30 20:40:28 +00:00
|
|
|
c) One (only) of:
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_USE_GPIO
|
|
|
|
#define GDISP_USE_FSMC
|
2012-09-18 10:45:32 +00:00
|
|
|
d) If you want to use DMA (only works with FSMC):
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_USE_DMA
|
|
|
|
#define GDISP_DMA_STREAM STM32_DMA2_STREAM6 //You can change the DMA channel according to your needs
|
2012-09-18 10:45:32 +00:00
|
|
|
|
|
|
|
2. Edit gdisp_lld_panel.h with your panel properties
|
2012-08-30 20:40:28 +00:00
|
|
|
|
2012-09-18 10:45:32 +00:00
|
|
|
3. To your makefile add the following lines:
|
2012-10-04 07:09:03 +00:00
|
|
|
include $(GFXLIB)/drivers/gdisp/SSD1963/gdisp_lld.mk
|
2012-09-18 10:45:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
Example FSMC config with DMA:
|
|
|
|
|
2012-10-10 23:41:18 +00:00
|
|
|
#define GDISP_SCREEN_WIDTH 480
|
|
|
|
#define GDISP_SCREEN_HEIGHT 272
|
2012-09-18 10:45:32 +00:00
|
|
|
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_USE_FSMC
|
2012-09-18 10:45:32 +00:00
|
|
|
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_USE_DMA
|
|
|
|
#define GDISP_DMA_STREAM STM32_DMA2_STREAM6
|
2012-09-18 10:45:32 +00:00
|
|
|
|
2012-09-29 18:56:30 +00:00
|
|
|
#if defined(GDISP_USE_GPIO)
|
2012-09-18 10:45:32 +00:00
|
|
|
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_CMD_PORT GPIOC
|
|
|
|
#define GDISP_DATA_PORT GPIOD
|
2012-09-18 10:45:32 +00:00
|
|
|
|
2012-09-29 18:56:30 +00:00
|
|
|
#define GDISP_CS 0
|
|
|
|
#define GDISP_RS 1
|
|
|
|
#define GDISP_WR 2
|
|
|
|
#define GDISP_RD 3
|
2012-09-24 22:19:10 +00:00
|
|
|
#endif
|