File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ static regval_list_t himax_default_regs[] = {
157
157
{0x3010 , 0x01 }, // 324 x 244 pixel
158
158
{0x0383 , 0x01 },
159
159
{0x0387 , 0x01 },
160
- {0x0390 , 0x03 },
160
+ {0x0390 , 0x00 },
161
161
{0x3011 , 0x70 },
162
162
{0x3059 , 0x02 },
163
163
{0x3060 , 0x00 },
@@ -207,8 +207,11 @@ uint8_t HIMAX_Open(void)
207
207
208
208
// printf("Model: %x:%x\n", HIMAX_RegRead(MODEL_ID_H), HIMAX_RegRead(MODEL_ID_L));
209
209
210
- if (HIMAX_Reset ()!=0 ) return -1 ;
211
- // HIMAX_Boot();
210
+ if (HIMAX_Reset ()!=0 ) {
211
+ return -1 ;
212
+ }
213
+
214
+ HIMAX_Boot ();
212
215
// For debugging camera Configuration
213
216
// HIMAX_PrintReg();
214
217
HAL_Delay (200 );
@@ -284,13 +287,12 @@ static uint8_t HIMAX_Boot()
284
287
uint32_t i;
285
288
286
289
for (i = 0 ; i < (sizeof (himax_default_regs) / sizeof (regval_list_t )); i++) {
287
- // printf("%d\n", i);
288
290
HIMAX_RegWrite (himax_default_regs[i].reg_num , himax_default_regs[i].value );
289
- // delay(1);
290
291
}
291
292
292
293
HIMAX_RegWrite (PCLK_POLARITY, (0x20 | PCLK_FALLING_EDGE));
293
294
295
+ HIMAX_RegWrite (MODE_SELECT, HIMAX_Standby);
294
296
return 0 ;
295
297
}
296
298
@@ -354,4 +356,4 @@ static uint8_t HIMAX_PrintReg()
354
356
355
357
/* *
356
358
* @}
357
- */
359
+ */
You can’t perform that action at this time.
0 commit comments