Video library for GR-PEACH
Dependents: Trace_Program2 GR-PEACH_Camera_in_barcode GR-PEACH_LCD_sample GR-PEACH_LCD_4_3inch_sample ... more
Video library for GR-PEACH.
Hello World!
Import programGR-PEACH_Camera_in
Camera in sample for GR-PEACH. This sample works on GR-LYCHEE besides GR-PEACH.
API
Import library
Interface
See the Pinout page for more details
inc/lcd_analog_rgb.h@4:aeefe5171463, 2016-06-30 (annotated)
- Committer:
- dkato
- Date:
- Thu Jun 30 11:00:37 2016 +0000
- Revision:
- 4:aeefe5171463
- Parent:
- 0:853f5b7408a7
Add ARGB4444 to graphics layer read format.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dkato | 0:853f5b7408a7 | 1 | /******************************************************************************* |
dkato | 0:853f5b7408a7 | 2 | * DISCLAIMER |
dkato | 0:853f5b7408a7 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
dkato | 0:853f5b7408a7 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
dkato | 0:853f5b7408a7 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
dkato | 0:853f5b7408a7 | 6 | * all applicable laws, including copyright laws. |
dkato | 0:853f5b7408a7 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
dkato | 0:853f5b7408a7 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
dkato | 0:853f5b7408a7 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
dkato | 0:853f5b7408a7 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
dkato | 0:853f5b7408a7 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
dkato | 0:853f5b7408a7 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
dkato | 0:853f5b7408a7 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
dkato | 0:853f5b7408a7 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
dkato | 0:853f5b7408a7 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
dkato | 0:853f5b7408a7 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
dkato | 0:853f5b7408a7 | 17 | * and to discontinue the availability of this software. By using this software, |
dkato | 0:853f5b7408a7 | 18 | * you agree to the additional terms and conditions found by accessing the |
dkato | 0:853f5b7408a7 | 19 | * following link: |
dkato | 0:853f5b7408a7 | 20 | * http://www.renesas.com/disclaimer |
dkato | 0:853f5b7408a7 | 21 | * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved. |
dkato | 0:853f5b7408a7 | 22 | *******************************************************************************/ |
dkato | 0:853f5b7408a7 | 23 | /**************************************************************************//** |
dkato | 0:853f5b7408a7 | 24 | * @file lcd_analog_rgb.h |
dkato | 0:853f5b7408a7 | 25 | * @version 1.00 |
dkato | 0:853f5b7408a7 | 26 | * $Rev: 199 $ |
dkato | 0:853f5b7408a7 | 27 | * $Date:: 2014-05-23 16:33:52 +0900#$ |
dkato | 0:853f5b7408a7 | 28 | * @brief LCD panel definition header |
dkato | 0:853f5b7408a7 | 29 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 30 | |
dkato | 0:853f5b7408a7 | 31 | #ifndef LCD_ANALOG_RGB_H |
dkato | 0:853f5b7408a7 | 32 | #define LCD_ANALOG_RGB_H |
dkato | 0:853f5b7408a7 | 33 | |
dkato | 0:853f5b7408a7 | 34 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 35 | Includes <System Includes> , "Project Includes" |
dkato | 0:853f5b7408a7 | 36 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 37 | #include <stdlib.h> |
dkato | 0:853f5b7408a7 | 38 | |
dkato | 0:853f5b7408a7 | 39 | #include "r_typedefs.h" |
dkato | 0:853f5b7408a7 | 40 | |
dkato | 0:853f5b7408a7 | 41 | #include "r_vdc5.h" |
dkato | 0:853f5b7408a7 | 42 | |
dkato | 0:853f5b7408a7 | 43 | |
dkato | 0:853f5b7408a7 | 44 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 45 | Macro definitions |
dkato | 0:853f5b7408a7 | 46 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 47 | /* SVGA signal 800x600 |
dkato | 0:853f5b7408a7 | 48 | Pixel clock frequency: 40.0 MHz |
dkato | 0:853f5b7408a7 | 49 | Refresh rate: 60.3 Hz |
dkato | 0:853f5b7408a7 | 50 | Polarity of horizontal sync pulse: Positive |
dkato | 0:853f5b7408a7 | 51 | Polarity of vertical sync pulse: Positive |
dkato | 0:853f5b7408a7 | 52 | */ |
dkato | 0:853f5b7408a7 | 53 | #define LCD_SVGA_H_VISIBLE_AREA (800u) /* Horizontal visible area [pixel] */ |
dkato | 0:853f5b7408a7 | 54 | #define LCD_SVGA_H_FRONT_PORCH (40u) /* Horizontal front porch [pixel] */ |
dkato | 0:853f5b7408a7 | 55 | #define LCD_SVGA_H_SYNC_WIDTH (128u) /* Horizontal sync pulse width [pixel] */ |
dkato | 0:853f5b7408a7 | 56 | #define LCD_SVGA_H_BACK_PORCH (88u) /* Horizontal back porch [pixel] */ |
dkato | 0:853f5b7408a7 | 57 | /* Horizontal total (one line) [pixel] */ |
dkato | 0:853f5b7408a7 | 58 | #define LCD_SVGA_H_TOTAL (LCD_SVGA_H_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 59 | LCD_SVGA_H_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 60 | LCD_SVGA_H_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 61 | LCD_SVGA_H_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 62 | #define LCD_SVGA_H_POLARITY (VDC5_SIG_POL_NOT_INVERTED) /* Polarity of horizontal sync pulse */ |
dkato | 0:853f5b7408a7 | 63 | |
dkato | 0:853f5b7408a7 | 64 | #define LCD_SVGA_V_VISIBLE_AREA (600u) /* Vertical visible area [line] */ |
dkato | 0:853f5b7408a7 | 65 | #define LCD_SVGA_V_FRONT_PORCH (1u) /* Vertical front porch [line] */ |
dkato | 0:853f5b7408a7 | 66 | #define LCD_SVGA_V_SYNC_WIDTH (4u) /* Vertical sync pulse width [line] */ |
dkato | 0:853f5b7408a7 | 67 | #define LCD_SVGA_V_BACK_PORCH (23u) /* Vertical back porch [line] */ |
dkato | 0:853f5b7408a7 | 68 | /* Vertical total (one frame) [line] */ |
dkato | 0:853f5b7408a7 | 69 | #define LCD_SVGA_V_TOTAL (LCD_SVGA_V_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 70 | LCD_SVGA_V_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 71 | LCD_SVGA_V_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 72 | LCD_SVGA_V_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 73 | #define LCD_SVGA_V_POLARITY (VDC5_SIG_POL_NOT_INVERTED) /* Polarity of vertical sync pulse */ |
dkato | 0:853f5b7408a7 | 74 | |
dkato | 0:853f5b7408a7 | 75 | |
dkato | 0:853f5b7408a7 | 76 | /* XGA signal 1024x768 |
dkato | 0:853f5b7408a7 | 77 | Pixel clock frequency: 65.0 MHz |
dkato | 0:853f5b7408a7 | 78 | Refresh rate: 60.0 Hz |
dkato | 0:853f5b7408a7 | 79 | Polarity of horizontal sync pulse: Negative |
dkato | 0:853f5b7408a7 | 80 | Polarity of vertical sync pulse: Negative |
dkato | 0:853f5b7408a7 | 81 | */ |
dkato | 0:853f5b7408a7 | 82 | #define LCD_XGA_H_VISIBLE_AREA (1024u) /* Horizontal visible area [pixel] */ |
dkato | 0:853f5b7408a7 | 83 | #define LCD_XGA_H_FRONT_PORCH (24u) /* Horizontal front porch [pixel] */ |
dkato | 0:853f5b7408a7 | 84 | #define LCD_XGA_H_SYNC_WIDTH (136u) /* Horizontal sync pulse width [pixel] */ |
dkato | 0:853f5b7408a7 | 85 | #define LCD_XGA_H_BACK_PORCH (160u) /* Horizontal back porch [pixel] */ |
dkato | 0:853f5b7408a7 | 86 | /* Horizontal total (one line) [pixel] */ |
dkato | 0:853f5b7408a7 | 87 | #define LCD_XGA_H_TOTAL (LCD_XGA_H_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 88 | LCD_XGA_H_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 89 | LCD_XGA_H_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 90 | LCD_XGA_H_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 91 | #define LCD_XGA_H_POLARITY (VDC5_SIG_POL_INVERTED) /* Polarity of horizontal sync pulse */ |
dkato | 0:853f5b7408a7 | 92 | |
dkato | 0:853f5b7408a7 | 93 | #define LCD_XGA_V_VISIBLE_AREA (768u) /* Vertical visible area [line] */ |
dkato | 0:853f5b7408a7 | 94 | #define LCD_XGA_V_FRONT_PORCH (3u) /* Vertical front porch [line] */ |
dkato | 0:853f5b7408a7 | 95 | #define LCD_XGA_V_SYNC_WIDTH (6u) /* Vertical sync pulse width [line] */ |
dkato | 0:853f5b7408a7 | 96 | #define LCD_XGA_V_BACK_PORCH (29u) /* Vertical back porch [line] */ |
dkato | 0:853f5b7408a7 | 97 | /* Vertical total (one frame) [line] */ |
dkato | 0:853f5b7408a7 | 98 | #define LCD_XGA_V_TOTAL (LCD_XGA_V_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 99 | LCD_XGA_V_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 100 | LCD_XGA_V_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 101 | LCD_XGA_V_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 102 | #define LCD_XGA_V_POLARITY (VDC5_SIG_POL_INVERTED) /* Polarity of vertical sync pulse */ |
dkato | 0:853f5b7408a7 | 103 | |
dkato | 0:853f5b7408a7 | 104 | |
dkato | 0:853f5b7408a7 | 105 | /* VGA signal 640x480 |
dkato | 0:853f5b7408a7 | 106 | Pixel clock frequency: 25.175 MHz |
dkato | 0:853f5b7408a7 | 107 | Refresh rate: 59.94 Hz |
dkato | 0:853f5b7408a7 | 108 | Polarity of horizontal sync pulse: Negative |
dkato | 0:853f5b7408a7 | 109 | Polarity of vertical sync pulse: Negative |
dkato | 0:853f5b7408a7 | 110 | */ |
dkato | 0:853f5b7408a7 | 111 | #define LCD_VGA_H_VISIBLE_AREA (640u) /* Horizontal visible area [pixel] */ |
dkato | 0:853f5b7408a7 | 112 | #define LCD_VGA_H_FRONT_PORCH (16u) /* Horizontal front porch [pixel] */ |
dkato | 0:853f5b7408a7 | 113 | #define LCD_VGA_H_SYNC_WIDTH (96u) /* Horizontal sync pulse width [pixel] */ |
dkato | 0:853f5b7408a7 | 114 | #define LCD_VGA_H_BACK_PORCH (48u) /* Horizontal back porch [pixel] */ |
dkato | 0:853f5b7408a7 | 115 | /* Horizontal total (one line) [pixel] */ |
dkato | 0:853f5b7408a7 | 116 | #define LCD_VGA_H_TOTAL (LCD_VGA_H_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 117 | LCD_VGA_H_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 118 | LCD_VGA_H_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 119 | LCD_VGA_H_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 120 | #define LCD_VGA_H_POLARITY (VDC5_SIG_POL_INVERTED) /* Polarity of horizontal sync pulse */ |
dkato | 0:853f5b7408a7 | 121 | |
dkato | 0:853f5b7408a7 | 122 | #define LCD_VGA_V_VISIBLE_AREA (480u) /* Vertical visible area [line] */ |
dkato | 0:853f5b7408a7 | 123 | #define LCD_VGA_V_FRONT_PORCH (10u) /* Vertical front porch [line] */ |
dkato | 0:853f5b7408a7 | 124 | #define LCD_VGA_V_SYNC_WIDTH (2u) /* Vertical sync pulse width [line] */ |
dkato | 0:853f5b7408a7 | 125 | #define LCD_VGA_V_BACK_PORCH (33u) /* Vertical back porch [line] */ |
dkato | 0:853f5b7408a7 | 126 | /* Vertical total (one frame) [line] */ |
dkato | 0:853f5b7408a7 | 127 | #define LCD_VGA_V_TOTAL (LCD_VGA_V_VISIBLE_AREA +\ |
dkato | 0:853f5b7408a7 | 128 | LCD_VGA_V_FRONT_PORCH +\ |
dkato | 0:853f5b7408a7 | 129 | LCD_VGA_V_SYNC_WIDTH +\ |
dkato | 0:853f5b7408a7 | 130 | LCD_VGA_V_BACK_PORCH) |
dkato | 0:853f5b7408a7 | 131 | #define LCD_VGA_V_POLARITY (VDC5_SIG_POL_INVERTED) /* Polarity of vertical sync pulse */ |
dkato | 0:853f5b7408a7 | 132 | |
dkato | 0:853f5b7408a7 | 133 | |
dkato | 0:853f5b7408a7 | 134 | #endif /* LCD_ANALOG_RGB_H */ |