aboutsummaryrefslogtreecommitdiffstats
path: root/docs/usage.txt
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-13 08:47:27 +0200
committerTectu <joel@unormal.org>2012-08-13 08:47:27 +0200
commitbcccde53e6af28dcc13756516ed2806b64c60da3 (patch)
tree5d924294993d712eecc8cde35a25a171b638c216 /docs/usage.txt
parent9d886f2451c7a277257bd5b779581527238e12aa (diff)
downloaduGFX-bcccde53e6af28dcc13756516ed2806b64c60da3.tar.gz
uGFX-bcccde53e6af28dcc13756516ed2806b64c60da3.tar.bz2
uGFX-bcccde53e6af28dcc13756516ed2806b64c60da3.zip
doc updates
Diffstat (limited to 'docs/usage.txt')
-rw-r--r--docs/usage.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/usage.txt b/docs/usage.txt
new file mode 100644
index 00000000..e2d33c18
--- /dev/null
+++ b/docs/usage.txt
@@ -0,0 +1,32 @@
+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
+
+ 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
+ include $(LCDLIB)/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.mk
+ include $(LCDLIB)/halext/drivers/gdisp/gdispNokia6610/gdisp_lld.mk
+
+ 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.
+