aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/HVGA_X81/gdisp_lld_config.h
diff options
context:
space:
mode:
authorAbhishek Kumar <abhishek@kumar>2013-04-30 17:35:34 +0700
committerAbhishek Kumar <abhishek@kumar>2013-04-30 17:35:57 +0700
commitb2252bb7bede275461700db9c56b702a93a33982 (patch)
tree6e5de57504639fe0e5c59579d11a9b7a0e457f94 /drivers/gdisp/HVGA_X81/gdisp_lld_config.h
parente1437a648e12967f1cc9993aa95db455b79d1e1e (diff)
downloaduGFX-b2252bb7bede275461700db9c56b702a93a33982.tar.gz
uGFX-b2252bb7bede275461700db9c56b702a93a33982.tar.bz2
uGFX-b2252bb7bede275461700db9c56b702a93a33982.zip
New LLD: HVGA_X81
For HVGA : 320 x 480, 16bpp displays, controlled by ILI9481 or compatible controllers. * Pixel readback TODO * Powermodes: Sleep implemented
Diffstat (limited to 'drivers/gdisp/HVGA_X81/gdisp_lld_config.h')
-rw-r--r--drivers/gdisp/HVGA_X81/gdisp_lld_config.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_config.h b/drivers/gdisp/HVGA_X81/gdisp_lld_config.h
new file mode 100644
index 00000000..a9dd8659
--- /dev/null
+++ b/drivers/gdisp/HVGA_X81/gdisp_lld_config.h
@@ -0,0 +1,53 @@
+/*
+ ChibiOS/GFX - Copyright (C) 2012, 2013
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS/GFX.
+
+ ChibiOS/GFX is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS/GFX is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/**
+ * @file drivers/gdisp/SSD1289/gdisp_lld_config.h
+ * @brief GDISP Graphics Driver subsystem low level driver source for
+ * the ILI9481 and compatible HVGA display
+ *
+ * @addtogroup GDISP
+ * @{
+ */
+
+#ifndef _GDISP_LLD_CONFIG_H
+#define _GDISP_LLD_CONFIG_H
+
+#if GFX_USE_GDISP
+
+/*===========================================================================*/
+/* Driver hardware support. */
+/*===========================================================================*/
+
+#define GDISP_DRIVER_NAME "HVGA_X81"
+
+#define GDISP_HARDWARE_CLEARS TRUE
+#define GDISP_HARDWARE_FILLS TRUE
+#define GDISP_HARDWARE_BITFILLS TRUE
+#define GDISP_HARDWARE_SCROLL TRUE
+#define GDISP_HARDWARE_PIXELREAD TRUE
+#define GDISP_HARDWARE_CONTROL TRUE
+
+#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565
+
+#endif /* GFX_USE_GDISP */
+
+#endif /* _GDISP_LLD_CONFIG_H */
+/** @} */