ugfx/readme1.txt

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-08-13 02:12:42 +00:00
To include any of these functions/drivers in your project...
1/ Specify the path to the LCDLIB. 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 $(LCDLIB)/lcd.mk
2012-08-13 02:49:55 +00:00
3/ Add $(LCDSRC) and $(LCDINC) 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
2012-08-13 02:12:42 +00:00
include $(LCDLIB)/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.mk
2012-08-13 02:49:55 +00:00
include $(LCDLIB)/halext/drivers/gdisp/gdispNokia6610/gdisp_lld.mk
2012-08-13 02:12:42 +00:00
2012-08-13 02:49:55 +00:00
5/ In your project halconf.h turn on the support you want eg.
2012-08-13 02:12:42 +00:00
/**
* @brief Enables the Touchpad subsystem.
*/
#if !defined(HAL_USE_TOUCHPAD) || defined(__DOXYGEN__)
#define HAL_USE_TOUCHPAD TRUE
#endif
2012-08-13 02:49:55 +00:00
2012-08-13 02:12:42 +00:00
/**
* @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
2012-08-13 02:49:55 +00:00
6/ Do a make clean.
2012-08-13 02:12:42 +00:00