2012-07-31 14:34:10 +10:00
|
|
|
To include any of these functions/drivers in your project...
|
|
|
|
|
2012-08-08 13:38:05 +02:00
|
|
|
1/ Specify the path to the LCDLIB. If none defined, default is $(CHIBIOS)/ext/lcd
|
|
|
|
|
2012-07-31 14:34:10 +10:00
|
|
|
2/ In your project Makefile (amongst similiar lines but after the hal line) add the line...
|
2012-08-08 13:38:05 +02:00
|
|
|
include $(LCDLIB)/lcd.mk
|
|
|
|
|
2012-07-31 14:34:10 +10:00
|
|
|
3/ In your project Makefile add the makefiles for any specific drivers you want e.g
|
2012-08-09 01:20:15 +02:00
|
|
|
include $(LCDLIB)/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.mk
|
2012-08-08 13:38:05 +02:00
|
|
|
|
2012-07-31 14:34:10 +10:00
|
|
|
4/ In your project halconf.h turn on the support you want eg.
|
|
|
|
/**
|
2012-08-09 01:20:15 +02:00
|
|
|
* @brief Enables the Touchpad subsystem.
|
2012-07-31 14:34:10 +10:00
|
|
|
*/
|
2012-08-09 01:20:15 +02:00
|
|
|
#if !defined(HAL_USE_TOUCHPAD) || defined(__DOXYGEN__)
|
|
|
|
#define HAL_USE_TOUCHPAD TRUE
|
2012-07-31 14:34:10 +10:00
|
|
|
#endif
|
2012-08-08 13:38:05 +02:00
|
|
|
|
2012-07-31 14:34:10 +10:00
|
|
|
5/ Do a make clean.
|
|
|
|
|