Lcd companion boards support (VKLCD50RTA & VKLCD70RT)

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd_panel.h Source File

lcd_panel.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer
00021 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**************************************************************************//**
00024 * @file         lcd_panel.h
00025 * @version      1.00
00026 * $Rev: 199 $
00027 * $Date:: 2014-05-23 16:33:52 +0900#$
00028 * @brief        LCD panel definition header
00029 ******************************************************************************/
00030 
00031 #ifndef LCD_PANEL_H
00032 #define LCD_PANEL_H
00033 
00034 /******************************************************************************
00035 Includes   <System Includes> , "Project Includes"
00036 ******************************************************************************/
00037 #include    <stdlib.h>
00038 
00039 #include    "r_typedefs.h"
00040 
00041 #include    "r_vdc5.h"
00042 
00043 
00044 /******************************************************************************
00045 Macro definitions
00046 ******************************************************************************/
00047 /* LCD panel select (CH0)
00048     1: VKLCD50RTA, HVGA 480x272
00049     2: VKLCD70RT, WSVGA 1024x600
00050 */
00051 #define     LCD_CH0_PANEL_VKLCD50RTA            (1) /* 16bitRGB(565) */
00052 #define     LCD_CH0_PANEL_VKLCD70RT             (2) /* LVDS          */
00053 
00054 //#define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD50RTA
00055 #define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD70RT
00056 
00057 /* LCD panel select (CH1)
00058     1: Analog RGB D-sub15, SVGA 800x600  debug code for GENMAI Board
00059 */
00060 #define     LCD_CH1_PANEL_ANALOG_RGB            (1) /* debug */
00061 #define     LCD_VDC5_CH1_PANEL                  LCD_CH1_PANEL_ANALOG_RGB
00062 
00063 
00064 #if   (LCD_VDC5_CH0_PANEL==LCD_CH0_PANEL_VKLCD50RTA)
00065 #include    "lcd_vklcd50rta_ch0.h"   
00066 #elif   (LCD_VDC5_CH0_PANEL==LCD_CH0_PANEL_VKLCD70RT)
00067 #include    "lcd_vklcd70rt_ch0.h"   
00068 #else
00069 #error  Undefined LCD panel!
00070 #endif
00071 
00072 #if     (LCD_VDC5_CH1_PANEL==1)
00073 #include    "lcd_analog_rgb_ch1.h"
00074 #else
00075 #error  Undefined LCD panel!
00076 #endif
00077 
00078 
00079 /******************************************************************************
00080 Typedef definitions
00081 ******************************************************************************/
00082 
00083 /******************************************************************************
00084 Exported global functions (to be accessed by other files)
00085 ******************************************************************************/
00086 void GRAPHICS_SetLcdPanel(const vdc5_channel_t  channel);
00087 void GRAPHICS_SetLcdTconSettings(const vdc5_channel_t  channel, const vdc5_lcd_tcon_timing_t  * * const outctrl);
00088 vdc5_lvds_t  * GRAPHICS_GetLvdsParam(const vdc5_channel_t  channel);
00089 
00090 
00091 #endif  /* LCD_PANEL_H */
00092