1 /* 2 * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include "soc/soc_caps.h" 10 #include "soc/clk_tree_defs.h" 11 #include "hal/cam_ctlr_types.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #if SOC_LCDCAM_CAM_DATA_WIDTH_MAX 18 #define CAP_DVP_PERIPH_NUM SOC_LCDCAM_CAM_PERIPH_NUM /*!< DVP port number */ 19 #define CAM_DVP_DATA_SIG_NUM SOC_LCDCAM_CAM_DATA_WIDTH_MAX /*!< DVP data bus width of CAM */ 20 #else 21 #define CAP_DVP_PERIPH_NUM 0 /*!< Default value */ 22 #define CAM_DVP_DATA_SIG_NUM 0 /*!< Default value */ 23 #endif 24 25 #if SOC_LCDCAM_CAM_SUPPORTED 26 typedef soc_periph_cam_clk_src_t cam_clock_source_t; /*!< Clock source type of CAM */ 27 #elif SOC_LCDCAM_SUPPORTED 28 typedef soc_periph_lcd_clk_src_t cam_clock_source_t; 29 #else 30 typedef int cam_clock_source_t; /*!< Default type */ 31 #endif 32 33 #ifdef __cplusplus 34 } 35 #endif 36