diff options
author | Andrew Hannam <andrewh@inmarket.com.au> | 2012-07-31 15:24:15 +1000 |
---|---|---|
committer | Andrew Hannam <andrewh@inmarket.com.au> | 2012-07-31 15:24:15 +1000 |
commit | d7fc0795d56a72392cd295400d2126c12d3acdbd (patch) | |
tree | dad005852de62d06fc6519afd3c3a4ff91e558b6 /halext/src | |
parent | 256062859a1b60dd93c73939b8d9a697e569f252 (diff) | |
download | uGFX-d7fc0795d56a72392cd295400d2126c12d3acdbd.tar.gz uGFX-d7fc0795d56a72392cd295400d2126c12d3acdbd.tar.bz2 uGFX-d7fc0795d56a72392cd295400d2126c12d3acdbd.zip |
Reduce minimum number of low level driver routines to 2
Diffstat (limited to 'halext/src')
-rw-r--r-- | halext/src/gdisp-readme.txt | 9 | ||||
-rw-r--r-- | halext/src/gdisp_inc_emulation.c | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/halext/src/gdisp-readme.txt b/halext/src/gdisp-readme.txt new file mode 100644 index 00000000..1a9cda25 --- /dev/null +++ b/halext/src/gdisp-readme.txt @@ -0,0 +1,9 @@ +The new GDISP driver is an architecture independant rewrite of the GLCD interface. This new architecture independance should allow many new low level drivers to be easily added.
+
+GDISP allows low-level driver hardware accelerated drawing routines while providing a software emulation if the low level driver can not provide it. A basic low level driver now only requires 2 routines to be written.
+
+A glcd.h compatability file has been included that allow applications written to use the existing GLCD driver to use the GDISP driver with little or no change.
+
+It is written in the ChibiOS style with ChibiOS style includes and documentation.
+
+It is encapsulated into a "halext" structure with appropriate readme's that allow for easy inclusion in any ChibiOS project. This structure can be seamlessly added to as new driver types are added and it supports low level drivers that are neither platform or board specific (although they can be).
diff --git a/halext/src/gdisp_inc_emulation.c b/halext/src/gdisp_inc_emulation.c index b2a69892..783df480 100644 --- a/halext/src/gdisp_inc_emulation.c +++ b/halext/src/gdisp_inc_emulation.c @@ -45,6 +45,16 @@ required - it will do it.
*/
+#if !GDISP_HARDWARE_POWERCONTROL
+ void gdisp_lld_setpowermode(gdisp_powermode_t UNUSED(powerMode)) {
+ }
+#endif
+
+#if !GDISP_HARDWARE_ORIENTATION
+ void gdisp_lld_setorientation(gdisp_orientation_t UNUSED(newOrientation)) {
+ }
+#endif
+
#if !GDISP_HARDWARE_CLEARS
void gdisp_lld_clear(color_t color) {
gdisp_lld_fillarea(0, 0, GDISP1.Width, GDISP1.Height, color);
|