Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
GR-PEACH_video/inc/lcd_gr_peach_ch0.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_gr_peach_ch0.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 for vdc5 channel 0 definition header |
thedo | 166:3a9487d57a5c | 29 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 30 | |
thedo | 166:3a9487d57a5c | 31 | #ifndef LCD_GR_PEACH_CH0_H |
thedo | 166:3a9487d57a5c | 32 | #define LCD_GR_PEACH_CH0_H |
thedo | 166:3a9487d57a5c | 33 | |
thedo | 166:3a9487d57a5c | 34 | #ifndef LCD_PANEL_H |
thedo | 166:3a9487d57a5c | 35 | #error Do not include this file directly! |
thedo | 166:3a9487d57a5c | 36 | #else |
thedo | 166:3a9487d57a5c | 37 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 38 | Includes <System Includes> , "Project Includes" |
thedo | 166:3a9487d57a5c | 39 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 40 | #include <stdlib.h> |
thedo | 166:3a9487d57a5c | 41 | |
thedo | 166:3a9487d57a5c | 42 | #include "r_typedefs.h" |
thedo | 166:3a9487d57a5c | 43 | |
thedo | 166:3a9487d57a5c | 44 | #include "r_vdc5.h" |
thedo | 166:3a9487d57a5c | 45 | |
thedo | 166:3a9487d57a5c | 46 | |
thedo | 166:3a9487d57a5c | 47 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 48 | Macro definitions |
thedo | 166:3a9487d57a5c | 49 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 50 | /* Not support */ |
thedo | 166:3a9487d57a5c | 51 | #define LCD_CH0_DISP_HS (128u) /* LCD display area size, horizontal start position */ |
thedo | 166:3a9487d57a5c | 52 | #define LCD_CH0_DISP_HW (800u) /* LCD display area size, horizontal width */ |
thedo | 166:3a9487d57a5c | 53 | #define LCD_CH0_DISP_VS (10u) /* LCD display area size, vertical start position */ |
thedo | 166:3a9487d57a5c | 54 | #define LCD_CH0_DISP_VW (480u) /* LCD display area size, height (vertical width) */ |
thedo | 166:3a9487d57a5c | 55 | #define LCD_CH0_SIG_FV (525u - 1u) /* Free-running Vsync period */ |
thedo | 166:3a9487d57a5c | 56 | #define LCD_CH0_SIG_FH (1056u - 1u) /* Hsync period */ |
thedo | 166:3a9487d57a5c | 57 | /* Pixel data is latched in the falling edge of pixel clock. |
thedo | 166:3a9487d57a5c | 58 | Therefore, pixel data should be output from VDC5 at the rising edge of the clock. */ |
thedo | 166:3a9487d57a5c | 59 | #define LCD_CH0_OUT_EDGE VDC5_EDGE_RISING /* Output phase control of LCD_DATA[23:0] signal */ |
thedo | 166:3a9487d57a5c | 60 | #define LCD_CH0_OUT_FORMAT VDC5_LCD_OUTFORMAT_RGB666 /* LCD output format select */ |
thedo | 166:3a9487d57a5c | 61 | |
thedo | 166:3a9487d57a5c | 62 | #define LCD_CH0_PANEL_CLK VDC5_PANEL_ICKSEL_PERI /* Panel clock select */ |
thedo | 166:3a9487d57a5c | 63 | #define LCD_CH0_PANEL_CLK_DIV VDC5_PANEL_CLKDIV_1_2 /* Panel clock frequency division ratio */ |
thedo | 166:3a9487d57a5c | 64 | |
thedo | 166:3a9487d57a5c | 65 | #define LCD_CH0_TCON_HALF (LCD_CH0_SIG_FH / 2u) /* TCON reference timing, 1/2fH timing */ |
thedo | 166:3a9487d57a5c | 66 | #define LCD_CH0_TCON_OFFSET (0u) /* TCON reference timing, offset Hsync signal timing */ |
thedo | 166:3a9487d57a5c | 67 | |
thedo | 166:3a9487d57a5c | 68 | |
thedo | 166:3a9487d57a5c | 69 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 70 | Typedef definitions |
thedo | 166:3a9487d57a5c | 71 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 72 | |
thedo | 166:3a9487d57a5c | 73 | /****************************************************************************** |
thedo | 166:3a9487d57a5c | 74 | Exported global functions (to be accessed by other files) |
thedo | 166:3a9487d57a5c | 75 | ******************************************************************************/ |
thedo | 166:3a9487d57a5c | 76 | void GRAPHICS_SetLcdPanel_Ch0(void); |
thedo | 166:3a9487d57a5c | 77 | void GRAPHICS_SetLcdTconSettings_Ch0(const vdc5_lcd_tcon_timing_t * * const outctrl); |
thedo | 166:3a9487d57a5c | 78 | |
thedo | 166:3a9487d57a5c | 79 | |
thedo | 166:3a9487d57a5c | 80 | #endif /* LCD_PANEL_H not defined */ |
thedo | 166:3a9487d57a5c | 81 | #endif /* LCD_GR_PEACH_CH0_H */ |