Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
GR-PEACH_video/inc/lcd_panel.h@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_panel.h |
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 LCD panel definition header |
thedo | 166:3a9487d57a5c | 29 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 30 | |
thedo | 166:3a9487d57a5c | 31 | #ifndef LCD_PANEL_H |
thedo | 166:3a9487d57a5c | 32 | #define LCD_PANEL_H |
thedo | 166:3a9487d57a5c | 33 | |
thedo | 166:3a9487d57a5c | 34 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 35 | Includes <System Includes> , "Project Includes" |
thedo | 166:3a9487d57a5c | 36 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 37 | #include <stdlib.h> |
thedo | 166:3a9487d57a5c | 38 | |
thedo | 166:3a9487d57a5c | 39 | #include "r_typedefs.h" |
thedo | 166:3a9487d57a5c | 40 | |
thedo | 166:3a9487d57a5c | 41 | #include "r_vdc5.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 | /* LCD panel select (CH0) |
thedo | 166:3a9487d57a5c | 48 | 1: Analog RGB D-sub15, SVGA 800x600 debug code for GENMAI Board |
thedo | 166:3a9487d57a5c | 49 | 2: Gr-peach, WVGA 800x480 Not support |
thedo | 166:3a9487d57a5c | 50 | */ |
thedo | 166:3a9487d57a5c | 51 | #define LCD_CH0_PANEL_ANALOG_RGB (1) /* debug */ |
thedo | 166:3a9487d57a5c | 52 | #define LCD_CH0_PANEL_GR_PEACH (2) /* Not support */ |
thedo | 166:3a9487d57a5c | 53 | #define LCD_VDC5_CH0_PANEL LCD_CH0_PANEL_GR_PEACH |
thedo | 166:3a9487d57a5c | 54 | |
thedo | 166:3a9487d57a5c | 55 | /* LCD panel select (CH1) |
thedo | 166:3a9487d57a5c | 56 | 1: Analog RGB D-sub15, SVGA 800x600 debug code for GENMAI Board |
thedo | 166:3a9487d57a5c | 57 | */ |
thedo | 166:3a9487d57a5c | 58 | #define LCD_CH1_PANEL_ANALOG_RGB (1) /* debug */ |
thedo | 166:3a9487d57a5c | 59 | #define LCD_VDC5_CH1_PANEL LCD_CH1_PANEL_ANALOG_RGB |
thedo | 166:3a9487d57a5c | 60 | |
thedo | 166:3a9487d57a5c | 61 | |
thedo | 166:3a9487d57a5c | 62 | #if (LCD_VDC5_CH0_PANEL==1) |
thedo | 166:3a9487d57a5c | 63 | #include "lcd_analog_rgb_ch0.h" |
thedo | 166:3a9487d57a5c | 64 | #elif (LCD_VDC5_CH0_PANEL==2) |
thedo | 166:3a9487d57a5c | 65 | #include "lcd_gr_peach_ch0.h" /* Not support */ |
thedo | 166:3a9487d57a5c | 66 | #else |
thedo | 166:3a9487d57a5c | 67 | #error Undefined LCD panel! |
thedo | 166:3a9487d57a5c | 68 | #endif |
thedo | 166:3a9487d57a5c | 69 | |
thedo | 166:3a9487d57a5c | 70 | #if (LCD_VDC5_CH1_PANEL==1) |
thedo | 166:3a9487d57a5c | 71 | #include "lcd_analog_rgb_ch1.h" |
thedo | 166:3a9487d57a5c | 72 | #else |
thedo | 166:3a9487d57a5c | 73 | #error Undefined LCD panel! |
thedo | 166:3a9487d57a5c | 74 | #endif |
thedo | 166:3a9487d57a5c | 75 | |
thedo | 166:3a9487d57a5c | 76 | |
thedo | 166:3a9487d57a5c | 77 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 78 | Typedef definitions |
thedo | 166:3a9487d57a5c | 79 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 80 | |
thedo | 166:3a9487d57a5c | 81 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 82 | Exported global functions (to be accessed by other files) |
thedo | 166:3a9487d57a5c | 83 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 84 | void GRAPHICS_SetLcdPanel(const vdc5_channel_t channel); |
thedo | 166:3a9487d57a5c | 85 | void GRAPHICS_SetLcdTconSettings(const vdc5_channel_t channel, const vdc5_lcd_tcon_timing_t * * const outctrl); |
thedo | 166:3a9487d57a5c | 86 | vdc5_lvds_t * GRAPHICS_GetLvdsParam(const vdc5_channel_t channel); |
thedo | 166:3a9487d57a5c | 87 | |
thedo | 166:3a9487d57a5c | 88 | |
thedo | 166:3a9487d57a5c | 89 | #endif /* LCD_PANEL_H */ |