Video library for GR-PEACH

Dependents:   Trace_Program2 GR-PEACH_Camera_in_barcode GR-PEACH_LCD_sample GR-PEACH_LCD_4_3inch_sample ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd_settings.c Source File

lcd_settings.c

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_settings.c
00025 * @version      1.00
00026 * $Rev: 199 $
00027 * $Date:: 2014-05-23 16:33:52 +0900#$
00028 * @brief        VDC5 driver LCD panel settings sample
00029 ******************************************************************************/
00030 
00031 /******************************************************************************
00032 Includes   <System Includes> , "Project Includes"
00033 ******************************************************************************/
00034 #include    <string.h>
00035 
00036 #include    "r_typedefs.h"
00037 
00038 #include    "r_vdc5.h"
00039 
00040 #include    "iodefine.h"
00041 #include    "lcd_panel.h"
00042 
00043 
00044 /******************************************************************************
00045 Macro definitions
00046 ******************************************************************************/
00047 #define LVDSPLL_TST (16u)     /* LVDSPLL_TST (LVDS PLL internal parameters) */
00048 
00049 /******************************************************************************
00050 Typedef definitions
00051 ******************************************************************************/
00052 
00053 /******************************************************************************
00054 Imported global variables and functions (from other files)
00055 ******************************************************************************/
00056 
00057 /******************************************************************************
00058 Exported global variables (to be accessed by other files)
00059 ******************************************************************************/
00060 
00061 /******************************************************************************
00062 Private global variables and functions
00063 ******************************************************************************/
00064 
00065 /**************************************************************************//**
00066  * @brief       LCD panel I/O port setup
00067  * @param[in]   channel
00068  * @retval      None
00069 ******************************************************************************/
00070 void GRAPHICS_SetLcdPanel (const vdc5_channel_t  channel)
00071 {
00072     if (channel == VDC5_CHANNEL_0 )    {
00073         GRAPHICS_SetLcdPanel_Ch0();
00074     } else {
00075         GRAPHICS_SetLcdPanel_Ch1();
00076     }
00077 }   /* End of function GRAPHICS_SetLcdPanel() */
00078 
00079 /**************************************************************************//**
00080  * @brief       LCD TCON setup parameter acquisition processing
00081  * @param[in]   channel
00082  * @param[out]  outctrl         : Address of the area for storing the LCD TCON timing setup data table
00083  * @retval      None
00084 ******************************************************************************/
00085 void GRAPHICS_SetLcdTconSettings (const vdc5_channel_t  channel, const vdc5_lcd_tcon_timing_t  * * const outctrl)
00086 {
00087     /* LCD TCON timing setting */
00088     if (channel == VDC5_CHANNEL_0 ) {
00089         GRAPHICS_SetLcdTconSettings_Ch0(outctrl);
00090     } else {
00091         GRAPHICS_SetLcdTconSettings_Ch1(outctrl);
00092     }
00093 }   /* End of function GRAPHICS_SetLcdTconSettings() */
00094 
00095 /**************************************************************************//**
00096  * @brief       LVDS-related parameter acquisition processing
00097  * @param[in]   channel
00098  * @retval      Address of the area containing the LVDS-related parameters
00099 ******************************************************************************/
00100 vdc5_lvds_t  * GRAPHICS_GetLvdsParam (const vdc5_channel_t  channel)
00101 {
00102     static vdc5_lvds_t   lvds_param;
00103     vdc5_lvds_t        * p_lvds;
00104 
00105     p_lvds = (vdc5_lvds_t  *)&lvds_param;
00106 
00107     if (channel == VDC5_CHANNEL_0 ) {
00108         p_lvds = NULL;
00109     } else {
00110         p_lvds = NULL;
00111     }
00112     return p_lvds;
00113 }   /* End of function GRAPHICS_GetLvdsParam() */
00114