Daiki Kato / Mbed 2 deprecated GR-PEACH_Digital_Signage_display_shield

Dependencies:   GR-PEACH_video GraphicsFramework R_BSP SDFileSystem_tmp mbed-rtos mbed

Revision:
1:2f9f102b2b4c
Parent:
0:8970afa15acc
Child:
2:e79ddc136968
--- a/main.cpp	Tue May 24 06:35:47 2016 +0000
+++ b/main.cpp	Tue May 24 08:01:44 2016 +0000
@@ -26,14 +26,15 @@
 
 #define SVGA                                (0u)  /*  800 x 600 */
 #define XGA                                 (1u)  /* 1024 x 768 */
-#define WXGA                                (2u)  /* 1280 x 800 */
+#define HD_720p                             (2u)  /* 1280 x 720 */
+#define WXGA                                (3u)  /* 1280 x 800 */
 
 /**** User Selection *********/
 #define WAIT_TIME                           (8000)
 #define DISSOLVE_STEP_NUM                   (16)    /* minimum 1 */
 #define SCROLL_STEP_NUM                     (8)     /* minimum 1 */
 #define SCROLL_DIRECTION                    (-1)    /* Select 1(left to right) or -1(right to left) */
-#define LCD_SIZE                            WXGA    /* Select SVGA, XGA or WXGA */
+#define LCD_SIZE                            WXGA    /* Select SVGA, XGA, HD_720p or WXGA */
 #define MAX_JPEG_SIZE                       (1024 * 300)
 /*****************************/
 
@@ -44,7 +45,7 @@
 /* LCD Parameter */
 #define LCD_INPUT_CLOCK                     (66.67f)
 #if ( LCD_SIZE == SVGA )
-#define LCD_OUTPUT_CLOCK                    (40.0f)
+#define LCD_OUTPUT_CLOCK                    (40.000f)
 #define LCD_PIXEL_WIDTH                     (800u)
 #define LCD_PIXEL_HEIGHT                    (600u)
 #define LCD_H_BACK_PORCH                    (88u)
@@ -54,7 +55,7 @@
 #define LCD_V_FRONT_PORCH                   (1u)
 #define LCD_V_SYNC_WIDTH                    (4u)
 #elif ( LCD_SIZE == XGA )
-#define LCD_OUTPUT_CLOCK                    (65.00325f)
+#define LCD_OUTPUT_CLOCK                    (65.000f)
 #define LCD_PIXEL_WIDTH                     (1024u)
 #define LCD_PIXEL_HEIGHT                    (768u)
 #define LCD_H_BACK_PORCH                    (160u)
@@ -63,8 +64,18 @@
 #define LCD_V_BACK_PORCH                    (29u)
 #define LCD_V_FRONT_PORCH                   (3u)
 #define LCD_V_SYNC_WIDTH                    (6u)
+#elif ( LCD_SIZE == HD_720p )
+#define LCD_OUTPUT_CLOCK                    (74.1800f)
+#define LCD_PIXEL_WIDTH                     (1280u)
+#define LCD_PIXEL_HEIGHT                    (800u)
+#define LCD_H_BACK_PORCH                    (220u)
+#define LCD_H_FRONT_PORCH                   (70u)
+#define LCD_H_SYNC_WIDTH                    (80u)
+#define LCD_V_BACK_PORCH                    (20u)
+#define LCD_V_FRONT_PORCH                   (5u)
+#define LCD_V_SYNC_WIDTH                    (5u)
 #elif ( LCD_SIZE == WXGA )
-#define LCD_OUTPUT_CLOCK                    (83.51112f)
+#define LCD_OUTPUT_CLOCK                    (85.4000f)
 #define LCD_PIXEL_WIDTH                     (1280u)
 #define LCD_PIXEL_HEIGHT                    (800u)
 #define LCD_H_BACK_PORCH                    (200u)