2012-08-13 08:47:27 +02:00
|
|
|
To include any of these functions/drivers in your project...
|
|
|
|
|
2012-10-04 09:09:03 +02:00
|
|
|
1/ Specify the path to the GFXLIB. If none defined, default is $(CHIBIOS)/ext/lcd
|
2012-08-13 08:47:27 +02:00
|
|
|
|
|
|
|
2/ In your project Makefile (amongst similiar lines but after the hal line) add the line...
|
2012-10-04 09:09:03 +02:00
|
|
|
include $(GFXLIB)/lcd.mk
|
2012-08-13 08:47:27 +02:00
|
|
|
|
2012-10-04 09:09:03 +02:00
|
|
|
3/ Add $(GFXSRC) and $(GFXINC) to your SRCS and INCDIR of your projects Makefile
|
2012-08-13 08:47:27 +02:00
|
|
|
|
|
|
|
4/ In your project Makefile add the makefiles for any specific drivers you want e.g
|
2012-10-04 09:09:03 +02:00
|
|
|
include $(GFXLIB)/halext/drivers/touchpad/XPT2046/touchpad_lld.mk
|
|
|
|
include $(GFXLIB)/halext/drivers/gdisp/Nokia6610/gdisp_lld.mk
|
2012-08-13 08:47:27 +02:00
|
|
|
|
|
|
|
5/ In your project halconf.h turn on the support you want eg.
|
|
|
|
/**
|
|
|
|
* @brief Enables the Touchpad subsystem.
|
|
|
|
*/
|
|
|
|
#if !defined(HAL_USE_TOUCHPAD) || defined(__DOXYGEN__)
|
|
|
|
#define HAL_USE_TOUCHPAD TRUE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Enables the GDISP subsystem.
|
|
|
|
*/
|
|
|
|
#if !defined(HAL_USE_GDISP) || defined(__DOXYGEN__)
|
|
|
|
#define HAL_USE_GDISP TRUE
|
|
|
|
/* Any driver specific defines required go here. The below line is an example. */
|
|
|
|
#define GDISP_NEED_MULTITHREAD TRUE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
6/ Do a make clean.
|
|
|
|
|