ugfx/docs/usage.txt

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2012-08-13 06:47:27 +00:00
To include any of these functions/drivers in your project...
2012-10-04 07:09:03 +00:00
1/ Specify the path to the GFXLIB. If none defined, default is $(CHIBIOS)/ext/lcd
2012-08-13 06:47:27 +00:00
2/ In your project Makefile (amongst similiar lines but after the hal line) add the line...
2012-10-10 08:47:18 +00:00
include $(GFXLIB)/gfx.mk
2012-08-13 06:47:27 +00:00
2012-10-04 07:09:03 +00:00
3/ Add $(GFXSRC) and $(GFXINC) to your SRCS and INCDIR of your projects Makefile
2012-08-13 06:47:27 +00:00
4/ In your project Makefile add the makefiles for any specific drivers you want e.g
2012-10-10 08:47:18 +00:00
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 HAL_USE_GDISP TRUE
#define HAL_USE_TOUCHPAD TRUE
#define GDISP_USE_GPIO TRUE
#define GDISP_GDISP_SCREEN_WIDTH 240
#define GDISP_GDISP_SCREEN_HEIGHT 320
2012-10-10 08:47:18 +00:00
#define GDISP_NEED_CONTROL TRUE
#define TOUCHPAD_NEED_MULTITHREAD TRUE
2012-08-13 06:47:27 +00:00
2012-10-10 08:47:18 +00:00
6/ Do a make clean
2012-08-13 06:47:27 +00:00