]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libboard_samv7-ek/source/ov7740_config.c
Update version number ready for V8.2.1 release.
[freertos] / FreeRTOS / Demo / CORTEX_M7_SAMV71_Xplained / libboard_samv7-ek / source / ov7740_config.c
1 /* ----------------------------------------------------------------------------\r
2  *         SAM Software Package License \r
3  * ----------------------------------------------------------------------------\r
4  * Copyright (c) 2013, Atmel Corporation\r
5  *\r
6  * All rights reserved.\r
7  *\r
8  * Redistribution and use in source and binary forms, with or without\r
9  * modification, are permitted provided that the following conditions are met:\r
10  *\r
11  * - Redistributions of source code must retain the above copyright notice,\r
12  * this list of conditions and the disclaimer below.\r
13  *\r
14  * Atmel's name may not be used to endorse or promote products derived from\r
15  * this software without specific prior written permission.\r
16  *\r
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR\r
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,\r
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\r
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
27  * ----------------------------------------------------------------------------\r
28  */\r
29 \r
30 /**\r
31  * \file\r
32  */\r
33 \r
34 /*------------------------------------------------------------------------------\r
35  *         Headers\r
36  *------------------------------------------------------------------------------*/\r
37 \r
38 #include "board.h"\r
39 \r
40 /*\r
41  * ID\r
42  */\r
43 \r
44 \r
45 \r
46 /*------------------------------------------------------------------------------\r
47  *         Local Variables\r
48  *------------------------------------------------------------------------------*/\r
49 \r
50 const struct ov_reg ov7740_yuv_vga[]= {\r
51 {0x12 ,0x80},\r
52 //{0x11 ,0x07},\r
53 \r
54 {0x55 ,0x40},\r
55 {0x11 ,0x02},\r
56 \r
57 {0x12 ,0x00},\r
58 {0xd5 ,0x10},\r
59 {0x0c ,0x12},\r
60 {0x0d ,0x34},\r
61 {0x17 ,0x25},\r
62 {0x18 ,0xa0},\r
63 {0x19 ,0x03},\r
64 {0x1a ,0xf0},\r
65 {0x1b ,0x89}, //;was 81\r
66 {0x22 ,0x03}, //;new\r
67 {0x29 ,0x18}, //;was 17\r
68 {0x2b ,0xf8},\r
69 {0x2c ,0x01},\r
70 {0x31 ,0xa0},\r
71 {0x32 ,0xf0},\r
72 {0x33 ,0xc4}, //;was44\r
73 {0x35 ,0x05}, //;new\r
74 {0x36 ,0x3f},\r
75 {0x04 ,0x60},\r
76 {0x27 ,0x80}, //;delete "42 3a b4"\r
77 {0x3d ,0x0f},\r
78 {0x3e ,0x80},\r
79 {0x3f ,0x40},\r
80 {0x40 ,0x7f},\r
81 {0x41 ,0x6a},\r
82 {0x42 ,0x29},\r
83 {0x44 ,0x22}, //;was 11\r
84 {0x45 ,0x41},\r
85 {0x47 ,0x02},\r
86 {0x49 ,0x64},\r
87 {0x4a ,0xa1},\r
88 {0x4b ,0x40},\r
89 {0x4c ,0x1a},\r
90 {0x4d ,0x50},\r
91 {0x4e ,0x13},\r
92 {0x64 ,0x00},\r
93 {0x67 ,0x88},\r
94 {0x68 ,0x1a},\r
95 \r
96 {0x14 ,0x28}, //;38/28/18 for 16/8/4x gain ceiling\r
97 {0x24 ,0x3c},\r
98 {0x25 ,0x30},\r
99 {0x26 ,0x72},\r
100 {0x50 ,0x97},\r
101 {0x51 ,0x1f}, //;0fc/7e/3f/1f for 60/30/15/7.5fps, 60Hz\r
102 {0x52 ,0x00}, //;[7:6]/[5:4] 2 msb for 60/50Hz\r
103 {0x53 ,0x00},\r
104 {0x20 ,0x00},\r
105 {0x21 ,0xcf}, //;01/23/57/cf for 60/30/15/7.5fps\r
106 {0x50, 0x4b}, // ;12e/97/4b/25 for 60/30/15/7.5fps, 50Hz\r
107 {0x38 ,0x14},\r
108 {0xe9 ,0x00},\r
109 {0x56 ,0x55},\r
110 {0x57 ,0xff},\r
111 {0x58 ,0xff},\r
112 {0x59 ,0xff},\r
113 {0x5f ,0x04},\r
114 {0xec ,0x00},\r
115 {0x13 ,0xff},\r
116 \r
117 {0x80 ,0x7f}, //;[6]/[5] for BPC/WPC\r
118 {0x81 ,0x3f},\r
119 {0x82 ,0x32},\r
120 {0x83 ,0x01},\r
121 {0x38 ,0x11},\r
122 {0x84 ,0x70},\r
123 {0x85 ,0x00},\r
124 {0x86 ,0x03},\r
125 {0x87 ,0x01},\r
126 {0x88 ,0x05},\r
127 {0x89 ,0x30},\r
128 {0x8d ,0x30},\r
129 {0x8f ,0x85},\r
130 {0x93 ,0x30},\r
131 {0x95 ,0x85},\r
132 {0x99 ,0x30},\r
133 {0x9b ,0x85},\r
134 \r
135 {0x9c ,0x08},\r
136 {0x9d ,0x12},\r
137 {0x9e ,0x23},\r
138 {0x9f ,0x45},\r
139 {0xa0 ,0x55},\r
140 {0xa1 ,0x64},\r
141 {0xa2 ,0x72},\r
142 {0xa3 ,0x7f},\r
143 {0xa4 ,0x8b},\r
144 {0xa5 ,0x95},\r
145 {0xa6 ,0xa7},\r
146 {0xa7 ,0xb5},\r
147 {0xa8 ,0xcb},\r
148 {0xa9 ,0xdd},\r
149 {0xaa ,0xec},\r
150 {0xab ,0x1a},\r
151 \r
152 {0xce ,0x78},\r
153 {0xcf ,0x6e},\r
154 {0xd0 ,0x0a},\r
155 {0xd1 ,0x0c},\r
156 {0xd2 ,0x84},\r
157 {0xd3 ,0x90},\r
158 {0xd4 ,0x1e},\r
159 \r
160 {0x5a ,0x24},\r
161 {0x5b ,0x1f},\r
162 {0x5c ,0x88},\r
163 {0x5d ,0x60},\r
164 \r
165 {0xac ,0x6e},\r
166 {0xbe ,0xff},\r
167 {0xbf ,0x00},\r
168 \r
169 {0x0f ,0x1d},\r
170 {0x0f ,0x1f},\r
171 {0xFF, 0xFF}\r
172 };\r