diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-22 17:21:19 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-22 17:21:19 +1000 |
commit | 285bd0f4d66fa3161a80bf6711d1bef226b17fe3 (patch) | |
tree | 93666d6d8831a67f2e6cd6fd008bfa0bf7c4b4d9 /drivers/gdisp/framebuffer/gdisp_lld_config.h | |
parent | 52cfaf00ccd35f5a0740a489a1a2af64c800b537 (diff) | |
download | uGFX-285bd0f4d66fa3161a80bf6711d1bef226b17fe3.tar.gz uGFX-285bd0f4d66fa3161a80bf6711d1bef226b17fe3.tar.bz2 uGFX-285bd0f4d66fa3161a80bf6711d1bef226b17fe3.zip |
GDISP framebuffer driver + an implementation for the linux kernel framebuffer device
Diffstat (limited to 'drivers/gdisp/framebuffer/gdisp_lld_config.h')
-rw-r--r-- | drivers/gdisp/framebuffer/gdisp_lld_config.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/gdisp/framebuffer/gdisp_lld_config.h b/drivers/gdisp/framebuffer/gdisp_lld_config.h new file mode 100644 index 00000000..08dbbb39 --- /dev/null +++ b/drivers/gdisp/framebuffer/gdisp_lld_config.h @@ -0,0 +1,38 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#ifndef _GDISP_LLD_CONFIG_H +#define _GDISP_LLD_CONFIG_H + +#if GFX_USE_GDISP + +/*===========================================================================*/ +/* Driver hardware support. */ +/*===========================================================================*/ + +#define GDISP_HARDWARE_DRAWPIXEL TRUE +#define GDISP_HARDWARE_PIXELREAD TRUE +#define GDISP_HARDWARE_CONTROL TRUE + +// Any other support comes from the board file +#include "board_framebuffer.h" + +#ifndef GDISP_LLD_PIXELFORMAT + #error "GDISP FrameBuffer: You must specify a GDISP_LLD_PIXELFORMAT in your board_framebuffer.h or your makefile" +#endif + +// This driver currently only supports unpacked formats with more than 8 bits per pixel +// that is, we only support GRAY_SCALE with 8 bits per pixel or any unpacked TRUE_COLOR format. +// Note: At the time this file is included we have not calculated all our color +// definitions so we need to do this by hand. +#if (GDISP_LLD_PIXELFORMAT & 0x4000) && (GDISP_LLD_PIXELFORMAT & 0xFF) != 8 + #error "GDISP FrameBuffer: This driver does not support the specified GDISP_LLD_PIXELFORMAT" +#endif + +#endif /* GFX_USE_GDISP */ + +#endif /* _GDISP_LLD_CONFIG_H */ |