GR-PEACH Display Shield config
Dependents: GR-PEACH_Digital_Signage
Revision 0:5dc57d29779d, committed 2016-07-28
- Comitter:
- dkato
- Date:
- Thu Jul 28 08:56:03 2016 +0000
- Commit message:
- first commit
Changed in this revision
diff -r 000000000000 -r 5dc57d29779d Display_shield_config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Display_shield_config.h Thu Jul 28 08:56:03 2016 +0000 @@ -0,0 +1,11 @@ + +#ifndef DISPLAY_SHIELD_CONFIG_H +#define DISPLAY_SHIELD_CONFIG_H + +#include "LcdCfg_Display_shield.h" + +#define LcdCfgTbl_LCD_shield LcdCfgTbl_Display_shield +#undef TouckKey_LCD_shield + +#endif +
diff -r 000000000000 -r 5dc57d29779d LcdCfg_Display_shield.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LcdCfg_Display_shield.cpp Thu Jul 28 08:56:03 2016 +0000 @@ -0,0 +1,24 @@ +#include "LcdCfg_Display_shield.h" + +const DisplayBase::lcd_config_t LcdCfgTbl_Display_shield = { + DisplayBase::LCD_TYPE_PARALLEL_RGB /* 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_1 /* h_sync_port */ + , DisplayBase::SIG_POL_NOT_INVERTED /* h_sync_port_polarity */ + , LCD_H_SYNC_WIDTH /* h_sync_width */ + , DisplayBase::LCD_TCON_PIN_2 /* v_sync_port */ + , DisplayBase::SIG_POL_NOT_INVERTED /* v_sync_port_polarity */ + , LCD_V_SYNC_WIDTH /* v_sync_width */ + , DisplayBase::LCD_TCON_PIN_0 /* de_port */ + , DisplayBase::SIG_POL_NOT_INVERTED /* de_port_polarity */ +}; +
diff -r 000000000000 -r 5dc57d29779d LcdCfg_Display_shield.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LcdCfg_Display_shield.h Thu Jul 28 08:56:03 2016 +0000 @@ -0,0 +1,49 @@ +#ifndef LCD_CFG_DISPLAY_SHIELD_H +#define LCD_CFG_DISPLAY_SHIELD_H + +#include "DisplayBace.h" + +#define SVGA (0u) /* 800x600@60 37.9kHz/60Hz */ +#define XGA (1u) /* 1024x768@60 48.4kHz/60Hz */ +#define HD_720p (2u) /* 1280x720@60 45.0kHz/60Hz */ + +#define LCD_SIZE HD_720p /* Select SVGA, XGA, or HD_720p */ + +/* LCD Parameter */ +#define LCD_INPUT_CLOCK (66.67) +#if ( LCD_SIZE == SVGA ) +#define LCD_OUTPUT_CLOCK (40.0003) +#define LCD_PIXEL_WIDTH (800u) +#define LCD_PIXEL_HEIGHT (600u) +#define LCD_H_BACK_PORCH (88u) +#define LCD_H_FRONT_PORCH (40u) +#define LCD_H_SYNC_WIDTH (128u) +#define LCD_V_BACK_PORCH (23u) +#define LCD_V_FRONT_PORCH (1u) +#define LCD_V_SYNC_WIDTH (4u) +#elif ( LCD_SIZE == XGA ) +#define LCD_OUTPUT_CLOCK (65.0002) +#define LCD_PIXEL_WIDTH (1024u) +#define LCD_PIXEL_HEIGHT (768u) +#define LCD_H_BACK_PORCH (160u) +#define LCD_H_FRONT_PORCH (24u) +#define LCD_H_SYNC_WIDTH (136u) +#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.1800) +#define LCD_PIXEL_WIDTH (1280u) +#define LCD_PIXEL_HEIGHT (720u) +#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) +#endif + +extern const DisplayBase::lcd_config_t LcdCfgTbl_Display_shield; + +#endif +