From 7ded8116d90081851e0ddb1b4bdd77b645f6535c Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 1 Dec 2021 01:20:10 +0100 Subject: i2c added 16 bit register read/write --- fw/fe310/test/cam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fw/fe310/test/cam.c') diff --git a/fw/fe310/test/cam.c b/fw/fe310/test/cam.c index 3162b40..2cef686 100644 --- a/fw/fe310/test/cam.c +++ b/fw/fe310/test/cam.c @@ -140,11 +140,13 @@ void app_cam(EVEWindow *window, EVEViewStack *stack) { eve_gpio_set(EVE_GPIO_CAM, 1); eos_time_sleep(100); - rv = eos_i2c_start(100000); + eos_i2c_speed(100000); + rv = eos_i2c_start(); if (!rv) rv = eos_ov2640_init(); if (!rv) rv = eos_ov2640_set_pixfmt(PIXFORMAT_JPEG); if (!rv) rv = eos_ov2640_set_framesize(FRAMESIZE_VGA); eos_i2c_stop(); + eos_i2c_speed(EOS_I2C_SPEED); if (!rv) { printf("CAM INIT\n"); -- cgit v1.2.3