ugfx/drivers/gdisp/VMT
Andrew Hannam 3a8d39980b Changes to Console, VMT, BitBlt, Clip & Drivers
Console - Fix compile, add GDISP_NEED_CONSOLE for compilation
VMT - Fix after directory structure changes
BitBlt - Update API to allow a source bitmap position.
Clip - Add clipping support into gdisp
Arc - Allow hardware accelleration of Arc routines
Nokia6610 - Fixes to BitBlt.
2012-09-10 15:54:22 +10:00
..
gdisp_lld_config.h Changes to Console, VMT, BitBlt, Clip & Drivers 2012-09-10 15:54:22 +10:00
gdisp_lld_driver1.c Changes to Console, VMT, BitBlt, Clip & Drivers 2012-09-10 15:54:22 +10:00
gdisp_lld_driver2.c Changes to Console, VMT, BitBlt, Clip & Drivers 2012-09-10 15:54:22 +10:00
gdisp_lld.c Changes to Console, VMT, BitBlt, Clip & Drivers 2012-09-10 15:54:22 +10:00
gdisp_lld.mk removed gdisp prefix on gdisp drivers 2012-08-14 02:10:57 +02:00
readme.txt removed gdisp prefix on gdisp drivers 2012-08-14 02:10:57 +02:00

This driver enables you to have two underlying drivers handling different hardware.
A choice is made at run-time of which driver to call based on which driver succeeds
to initialise first (init returns TRUE).

To use this driver:

1. Add in your halconf.h:
	a) #define HAL_USE_GDISP	TRUE
	b) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD
	c) Define these:
		#define GDISP_VMT_NAME1(x)	x##YourDriver1
		#define GDISP_VMT_NAME2(x)	x##YourDriver2
		Note YourDriver1 & 2 are the basenames of the directories containing the driver.
		Note that both drivers must be the same pixel format which is
			GDISP_PIXELFORMAT_RGB565 by default. Alter gdispVMT/gdisp_lld_config.h if your
			pixel format is different on both drivers.
	d) Any driver specific defines. If both drivers use the same defines then they must
		accept the same values for the define.

2. To your makefile add the following lines:
	include $(CHIBIOS)/os/halext/halext.mk
	include $(CHIBIOS)/os/halext/drivers/gdispVMT/gdisp_lld.mk