blob: a68c618ab81e3f32b7dc44110ccd0aee6641a8d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
To include any of these functions/drivers in your project...
1/ Specify the path to the GFXLIB. If none defined, default is $(CHIBIOS)/ext/lcd
2/ In your project Makefile (amongst similiar lines but after the hal line) add the line...
include $(GFXLIB)/gfx.mk
3/ Add $(GFXSRC) and $(GFXINC) to your SRCS and INCDIR of your projects Makefile
4/ In your project Makefile add the makefiles for any specific drivers you want e.g
include $(GFXLIB)/drivers/touchpad/XPT2046/touchpad_lld.mk
include $(GFXLIB)/drivers/gdisp/SSD1289/gdisp_lld.mk
5/ In your project halconf.h turn on the support you want. Please take a look to
docs/configure.txt for a list and description of all available macros. For example:
#define GFX_USE_GDISP TRUE
#define GFX_USE_TOUCHPAD TRUE
#define GDISP_USE_GPIO TRUE
#define GDISP_GDISP_SCREEN_WIDTH 240
#define GDISP_GDISP_SCREEN_HEIGHT 320
#define GDISP_NEED_CONTROL TRUE
#define TOUCHPAD_NEED_MULTITHREAD TRUE
6/ Do a make clean
|