Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project by
GR-PEACH_video/common/lcd_settings.c@170:54ff26da7eb6, 2017-07-04 (annotated)
- Committer:
- thedo
- Date:
- Tue Jul 04 06:23:13 2017 +0000
- Revision:
- 170:54ff26da7eb6
- Parent:
- 166:3a9487d57a5c
project opencv 3.1 on GR PEACH board, no use SD card.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| thedo | 166:3a9487d57a5c | 1 | /******************************************************************************* |
| thedo | 166:3a9487d57a5c | 2 | * DISCLAIMER |
| thedo | 166:3a9487d57a5c | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
| thedo | 166:3a9487d57a5c | 4 | * intended for use with Renesas products. No other uses are authorized. This |
| thedo | 166:3a9487d57a5c | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
| thedo | 166:3a9487d57a5c | 6 | * all applicable laws, including copyright laws. |
| thedo | 166:3a9487d57a5c | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
| thedo | 166:3a9487d57a5c | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
| thedo | 166:3a9487d57a5c | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
| thedo | 166:3a9487d57a5c | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
| thedo | 166:3a9487d57a5c | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
| thedo | 166:3a9487d57a5c | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
| thedo | 166:3a9487d57a5c | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
| thedo | 166:3a9487d57a5c | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
| thedo | 166:3a9487d57a5c | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| thedo | 166:3a9487d57a5c | 16 | * Renesas reserves the right, without notice, to make changes to this software |
| thedo | 166:3a9487d57a5c | 17 | * and to discontinue the availability of this software. By using this software, |
| thedo | 166:3a9487d57a5c | 18 | * you agree to the additional terms and conditions found by accessing the |
| thedo | 166:3a9487d57a5c | 19 | * following link: |
| thedo | 166:3a9487d57a5c | 20 | * http://www.renesas.com/disclaimer |
| thedo | 166:3a9487d57a5c | 21 | * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved. |
| thedo | 166:3a9487d57a5c | 22 | *******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 23 | /**************************************************************************//** |
| thedo | 166:3a9487d57a5c | 24 | * @file lcd_settings.c |
| thedo | 166:3a9487d57a5c | 25 | * @version 1.00 |
| thedo | 166:3a9487d57a5c | 26 | * $Rev: 199 $ |
| thedo | 166:3a9487d57a5c | 27 | * $Date:: 2014-05-23 16:33:52 +0900#$ |
| thedo | 166:3a9487d57a5c | 28 | * @brief VDC5 driver LCD panel settings sample |
| thedo | 166:3a9487d57a5c | 29 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 30 | |
| thedo | 166:3a9487d57a5c | 31 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 32 | Includes <System Includes> , "Project Includes" |
| thedo | 166:3a9487d57a5c | 33 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 34 | #include <string.h> |
| thedo | 166:3a9487d57a5c | 35 | |
| thedo | 166:3a9487d57a5c | 36 | #include "r_typedefs.h" |
| thedo | 166:3a9487d57a5c | 37 | |
| thedo | 166:3a9487d57a5c | 38 | #include "r_vdc5.h" |
| thedo | 166:3a9487d57a5c | 39 | |
| thedo | 166:3a9487d57a5c | 40 | #include "iodefine.h" |
| thedo | 166:3a9487d57a5c | 41 | #include "lcd_panel.h" |
| thedo | 166:3a9487d57a5c | 42 | |
| thedo | 166:3a9487d57a5c | 43 | |
| thedo | 166:3a9487d57a5c | 44 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 45 | Macro definitions |
| thedo | 166:3a9487d57a5c | 46 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 47 | #define LVDSPLL_TST (16u) /* LVDSPLL_TST (LVDS PLL internal parameters) */ |
| thedo | 166:3a9487d57a5c | 48 | |
| thedo | 166:3a9487d57a5c | 49 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 50 | Typedef definitions |
| thedo | 166:3a9487d57a5c | 51 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 52 | |
| thedo | 166:3a9487d57a5c | 53 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 54 | Imported global variables and functions (from other files) |
| thedo | 166:3a9487d57a5c | 55 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 56 | |
| thedo | 166:3a9487d57a5c | 57 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 58 | Exported global variables (to be accessed by other files) |
| thedo | 166:3a9487d57a5c | 59 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 60 | |
| thedo | 166:3a9487d57a5c | 61 | /****************************************************************************** |
| thedo | 166:3a9487d57a5c | 62 | Private global variables and functions |
| thedo | 166:3a9487d57a5c | 63 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 64 | |
| thedo | 166:3a9487d57a5c | 65 | /**************************************************************************//** |
| thedo | 166:3a9487d57a5c | 66 | * @brief LCD panel I/O port setup |
| thedo | 166:3a9487d57a5c | 67 | * @param[in] channel |
| thedo | 166:3a9487d57a5c | 68 | * @retval None |
| thedo | 166:3a9487d57a5c | 69 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 70 | void GRAPHICS_SetLcdPanel (const vdc5_channel_t channel) |
| thedo | 166:3a9487d57a5c | 71 | { |
| thedo | 166:3a9487d57a5c | 72 | if (channel == VDC5_CHANNEL_0) { |
| thedo | 166:3a9487d57a5c | 73 | GRAPHICS_SetLcdPanel_Ch0(); |
| thedo | 166:3a9487d57a5c | 74 | } else { |
| thedo | 166:3a9487d57a5c | 75 | GRAPHICS_SetLcdPanel_Ch1(); |
| thedo | 166:3a9487d57a5c | 76 | } |
| thedo | 166:3a9487d57a5c | 77 | } /* End of function GRAPHICS_SetLcdPanel() */ |
| thedo | 166:3a9487d57a5c | 78 | |
| thedo | 166:3a9487d57a5c | 79 | /**************************************************************************//** |
| thedo | 166:3a9487d57a5c | 80 | * @brief LCD TCON setup parameter acquisition processing |
| thedo | 166:3a9487d57a5c | 81 | * @param[in] channel |
| thedo | 166:3a9487d57a5c | 82 | * @param[out] outctrl : Address of the area for storing the LCD TCON timing setup data table |
| thedo | 166:3a9487d57a5c | 83 | * @retval None |
| thedo | 166:3a9487d57a5c | 84 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 85 | void GRAPHICS_SetLcdTconSettings (const vdc5_channel_t channel, const vdc5_lcd_tcon_timing_t * * const outctrl) |
| thedo | 166:3a9487d57a5c | 86 | { |
| thedo | 166:3a9487d57a5c | 87 | /* LCD TCON timing setting */ |
| thedo | 166:3a9487d57a5c | 88 | if (channel == VDC5_CHANNEL_0) { |
| thedo | 166:3a9487d57a5c | 89 | GRAPHICS_SetLcdTconSettings_Ch0(outctrl); |
| thedo | 166:3a9487d57a5c | 90 | } else { |
| thedo | 166:3a9487d57a5c | 91 | GRAPHICS_SetLcdTconSettings_Ch1(outctrl); |
| thedo | 166:3a9487d57a5c | 92 | } |
| thedo | 166:3a9487d57a5c | 93 | } /* End of function GRAPHICS_SetLcdTconSettings() */ |
| thedo | 166:3a9487d57a5c | 94 | |
| thedo | 166:3a9487d57a5c | 95 | /**************************************************************************//** |
| thedo | 166:3a9487d57a5c | 96 | * @brief LVDS-related parameter acquisition processing |
| thedo | 166:3a9487d57a5c | 97 | * @param[in] channel |
| thedo | 166:3a9487d57a5c | 98 | * @retval Address of the area containing the LVDS-related parameters |
| thedo | 166:3a9487d57a5c | 99 | ******************************************************************************/ |
| thedo | 166:3a9487d57a5c | 100 | vdc5_lvds_t * GRAPHICS_GetLvdsParam (const vdc5_channel_t channel) |
| thedo | 166:3a9487d57a5c | 101 | { |
| thedo | 166:3a9487d57a5c | 102 | static vdc5_lvds_t lvds_param; |
| thedo | 166:3a9487d57a5c | 103 | vdc5_lvds_t * p_lvds; |
| thedo | 166:3a9487d57a5c | 104 | |
| thedo | 166:3a9487d57a5c | 105 | p_lvds = (vdc5_lvds_t *)&lvds_param; |
| thedo | 166:3a9487d57a5c | 106 | |
| thedo | 166:3a9487d57a5c | 107 | if (channel == VDC5_CHANNEL_0) { |
| thedo | 166:3a9487d57a5c | 108 | p_lvds = NULL; |
| thedo | 166:3a9487d57a5c | 109 | } else { |
| thedo | 166:3a9487d57a5c | 110 | p_lvds = NULL; |
| thedo | 166:3a9487d57a5c | 111 | } |
| thedo | 166:3a9487d57a5c | 112 | return p_lvds; |
| thedo | 166:3a9487d57a5c | 113 | } /* End of function GRAPHICS_GetLvdsParam() */ |
| thedo | 166:3a9487d57a5c | 114 |
