2012-08-13 04:12:42 +02:00
|
|
|
To use this driver:
|
|
|
|
|
|
|
|
1. Add in your halconf.h:
|
2012-10-21 01:47:11 +02:00
|
|
|
a) #define GFX_USE_GDISP TRUE
|
2012-10-10 10:35:17 +02:00
|
|
|
|
2012-08-13 04:12:42 +02:00
|
|
|
b) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD
|
2012-10-10 10:35:17 +02:00
|
|
|
|
2012-11-17 18:11:05 +10:00
|
|
|
c) If you are not using a known board then create a gdisp_lld_board.h file
|
|
|
|
and ensure it is on your include path.
|
|
|
|
Use the gdisp_lld_board_example.h or gdisp_lld_board_fsmc.h file as a basis.
|
|
|
|
Currently known boards are:
|
|
|
|
BOARD_FIREBULL_STM32_F103 - GPIO interface: requires GDISP_CMD_PORT and GDISP_DATA_PORT to be defined
|
2012-10-10 10:35:17 +02:00
|
|
|
|
2012-11-17 18:11:05 +10:00
|
|
|
d) The following are optional - define them if you are not using the defaults below:
|
2012-10-11 01:41:18 +02:00
|
|
|
#define GDISP_SCREEN_WIDTH 320
|
|
|
|
#define GDISP_SCREEN_HEIGHT 240
|
2012-08-13 04:12:42 +02:00
|
|
|
|
|
|
|
2. To your makefile add the following lines:
|
2012-10-04 09:09:03 +02:00
|
|
|
include $(GFXLIB)/drivers/gdisp/SSD1289/gdisp_lld.mk
|