From 9d20f2e5d1e2593138564535d5eae9c4cfd41e73 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 14 Jan 2022 15:02:35 +0900 Subject: [PATCH] Camera: Call initialization function of camera devices on theCamera Call the following functions because they have been not called in SDK side from version 2.5.0 - isx019_initialize() - isx012_initialize() - cxd56_cisif_initialize() --- .../hardware/spresense/1.0.0/libraries/Camera/Camera.cpp | 8 +++++++- tools/configs/spresense.conf | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/Camera/Camera.cpp b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/Camera/Camera.cpp index 1f1628dfb..a1c6bdf0d 100644 --- a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/Camera/Camera.cpp +++ b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/Camera/Camera.cpp @@ -31,6 +31,9 @@ #include #include +#include +#include +#include /**************************************************************************** * ImgBuff implementation. @@ -498,7 +501,10 @@ CameraClass CameraClass::getInstance() // Public : Constructor. CameraClass::CameraClass(const char *path) { - video_init_stat = video_initialize(path); + video_init_stat = isx019_initialize(); + video_init_stat += isx012_initialize(); + video_init_stat += cxd56_cisif_initialize(); + video_init_stat += video_initialize(path); video_fd = -1; video_imgs = NULL; video_buf_num = 0; diff --git a/tools/configs/spresense.conf b/tools/configs/spresense.conf index 9395489a9..59245db2c 100644 --- a/tools/configs/spresense.conf +++ b/tools/configs/spresense.conf @@ -1 +1 @@ -default device/adc device/camera device/charger device/emmc device/hostif device/pwm device/sdcard feature/asmp feature/audio_player feature/audio_recorder feature/audio_recognizer feature/audio_synthesizer feature/dnnrt_mp feature/fwuputils feature/gnss feature/imageproc feature/libcxx feature/lte_stub_mbedtls feature/step_counter feature/digital_filters -- +CXD56_I2C_DRIVER=n +CXD56_I2C1 +CXD56_I2C1_SCUSEQ=n +CXD56_LTE_LATE_INITIALIZE=y +CXD56_HPADC0_INPUT_GAIN_M6DB +CXD56_HPADC1_INPUT_GAIN_M6DB +CXD56_USE_SYSBUS=n -LTE_SYSCTL=y +default device/adc device/camera device/charger device/emmc device/hostif device/pwm device/sdcard feature/asmp feature/audio_player feature/audio_recorder feature/audio_recognizer feature/audio_synthesizer feature/dnnrt_mp feature/fwuputils feature/gnss feature/imageproc feature/libcxx feature/lte_stub_mbedtls feature/step_counter feature/digital_filters -- +CXD56_I2C_DRIVER=n +CXD56_I2C1 +CXD56_I2C1_SCUSEQ=n +CXD56_LTE_LATE_INITIALIZE=y +CXD56_CAMERA_LATE_INITIALIZE=y +CXD56_HPADC0_INPUT_GAIN_M6DB +CXD56_HPADC1_INPUT_GAIN_M6DB +CXD56_USE_SYSBUS=n -LTE_SYSCTL=y