LCD configurations for GR-PEACH LCD Shild.

Dependents:   LCD_shield_config

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Thu Jun 30 10:23:14 2016 +0000
Commit message:
first commit

Changed in this revision

LcdCfg_4_3inch.cpp Show annotated file Show diff for this revision Revisions of this file
LcdCfg_4_3inch.h Show annotated file Show diff for this revision Revisions of this file
LcdCfg_7_1inch.cpp Show annotated file Show diff for this revision Revisions of this file
LcdCfg_7_1inch.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 43578daab4d8 LcdCfg_4_3inch.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LcdCfg_4_3inch.cpp	Thu Jun 30 10:23:14 2016 +0000
@@ -0,0 +1,24 @@
+#include "LcdCfg_4_3inch.h"
+
+const DisplayBase::lcd_config_t LcdCfgTbl_4_3inch = {
+      DisplayBase::LCD_TYPE_LVDS                                                    /* lcd_type             */
+    , LCD_INPUT_CLOCK                                                               /* intputClock          */
+    , LCD_OUTPUT_CLOCK                                                              /* outputClock          */
+    , DisplayBase::LCD_OUTFORMAT_RGB888                                             /* lcd_outformat        */
+    , DisplayBase::EDGE_RISING                                                      /* lcd_edge             */
+    , (LCD_PIXEL_WIDTH  + LCD_H_FRONT_PORCH + LCD_H_BACK_PORCH + LCD_H_SYNC_WIDTH)  /* h_toatal_period      */
+    , (LCD_PIXEL_HEIGHT + LCD_V_FRONT_PORCH + LCD_V_BACK_PORCH + LCD_V_SYNC_WIDTH)  /* v_toatal_period      */
+    , LCD_PIXEL_WIDTH                                                               /* h_disp_widht         */
+    , LCD_PIXEL_HEIGHT                                                              /* v_disp_widht         */
+    , LCD_H_BACK_PORCH                                                              /* h_back_porch         */
+    , LCD_V_BACK_PORCH                                                              /* v_back_porch         */
+    , DisplayBase::LCD_TCON_PIN_2                                                   /* h_sync_port          */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* h_sync_port_polarity */
+    , LCD_H_SYNC_WIDTH                                                              /* h_sync_width         */
+    , DisplayBase::LCD_TCON_PIN_0                                                   /* v_sync_port          */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* v_sync_port_polarity */
+    , LCD_V_SYNC_WIDTH                                                              /* v_sync_width         */
+    , DisplayBase::LCD_TCON_PIN_3                                                   /* de_port              */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* de_port_polarity     */
+};
+
diff -r 000000000000 -r 43578daab4d8 LcdCfg_4_3inch.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LcdCfg_4_3inch.h	Thu Jun 30 10:23:14 2016 +0000
@@ -0,0 +1,23 @@
+
+#ifndef LCD_CFG_4_3INCH_H
+#define LCD_CFG_4_3INCH_H
+
+#include "DisplayBace.h"
+
+/* LCD Parameter */
+#define LCD_INPUT_CLOCK                     (66.67)
+#define LCD_OUTPUT_CLOCK                    (13.40f)
+#define LCD_PIXEL_WIDTH                     (480u)
+#define LCD_PIXEL_HEIGHT                    (272u)
+#define LCD_H_BACK_PORCH                    (43u)
+#define LCD_H_FRONT_PORCH                   (52u)
+#define LCD_H_SYNC_WIDTH                    (41u)
+#define LCD_V_BACK_PORCH                    (12u)
+#define LCD_V_FRONT_PORCH                   (2u)
+#define LCD_V_SYNC_WIDTH                    (10u)
+
+extern const DisplayBase::lcd_config_t LcdCfgTbl_4_3inch;
+
+#endif
+
+
diff -r 000000000000 -r 43578daab4d8 LcdCfg_7_1inch.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LcdCfg_7_1inch.cpp	Thu Jun 30 10:23:14 2016 +0000
@@ -0,0 +1,26 @@
+#include "LcdCfg_7_1inch.h"
+
+const DisplayBase::lcd_config_t LcdCfgTbl_7_1inch = {
+      DisplayBase::LCD_TYPE_LVDS                                                    /* lcd_type             */
+    , LCD_INPUT_CLOCK                                                               /* intputClock          */
+    , LCD_OUTPUT_CLOCK                                                              /* outputClock          */
+    , DisplayBase::LCD_OUTFORMAT_RGB888                                             /* lcd_outformat        */
+    , DisplayBase::EDGE_RISING                                                      /* lcd_edge             */
+    , (LCD_PIXEL_WIDTH  + LCD_H_FRONT_PORCH + LCD_H_BACK_PORCH + LCD_H_SYNC_WIDTH)  /* h_toatal_period      */
+    , (LCD_PIXEL_HEIGHT + LCD_V_FRONT_PORCH + LCD_V_BACK_PORCH + LCD_V_SYNC_WIDTH)  /* v_toatal_period      */
+    , LCD_PIXEL_WIDTH                                                               /* h_disp_widht         */
+    , LCD_PIXEL_HEIGHT                                                              /* v_disp_widht         */
+    , (LCD_H_BACK_PORCH + LCD_H_SYNC_WIDTH)                                         /* h_back_porch         */
+    , (LCD_V_BACK_PORCH + LCD_V_SYNC_WIDTH)                                         /* v_back_porch         */
+    , DisplayBase::LCD_TCON_PIN_NON                                                 /* h_sync_port          */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* h_sync_port_polarity */
+    , 0                                                                             /* h_sync_width         */
+    , DisplayBase::LCD_TCON_PIN_NON                                                 /* v_sync_port          */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* v_sync_port_polarity */
+    , 0                                                                             /* v_sync_width         */
+    , DisplayBase::LCD_TCON_PIN_3                                                   /* de_port              */
+    , DisplayBase::SIG_POL_NOT_INVERTED                                             /* de_port_polarity     */
+};
+
+
+
diff -r 000000000000 -r 43578daab4d8 LcdCfg_7_1inch.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LcdCfg_7_1inch.h	Thu Jun 30 10:23:14 2016 +0000
@@ -0,0 +1,22 @@
+
+#ifndef LCD_CFG_7_1INCH_H
+#define LCD_CFG_7_1INCH_H
+
+#include "DisplayBace.h"
+
+/* LCD Parameter */
+#define LCD_INPUT_CLOCK                     (66.67)
+#define LCD_OUTPUT_CLOCK                    (33.26)
+#define LCD_PIXEL_WIDTH                     (800u)
+#define LCD_PIXEL_HEIGHT                    (480u)
+#define LCD_H_BACK_PORCH                    (128u)
+#define LCD_H_FRONT_PORCH                   (92u)
+#define LCD_H_SYNC_WIDTH                    (36u)
+#define LCD_V_BACK_PORCH                    (35u)
+#define LCD_V_FRONT_PORCH                   (5u)
+#define LCD_V_SYNC_WIDTH                    (5u)
+
+extern const DisplayBase::lcd_config_t LcdCfgTbl_7_1inch;
+
+#endif
+