feat(hal):graudate the camera hal driver into a new component

This commit is contained in:
armando
2025-11-21 10:51:28 +08:00
parent 461c0d8f65
commit 66da426c83
34 changed files with 144 additions and 128 deletions
@@ -0,0 +1,38 @@
/*
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "soc/soc_caps.h"
#include "soc/periph_defs.h"
#if SOC_HAS(LCDCAM_CAM)
#include "hal/cam_ll.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_LCDCAM_CAM_SUPPORTED
typedef struct {
struct {
const shared_periph_module_t module;
const int irq_id;
const int data_sigs[CAM_LL_DATA_WIDTH_MAX];
const int hsync_sig;
const int vsync_sig;
const int pclk_sig;
const int de_sig;
const int clk_sig;
} buses[CAM_LL_PERIPH_NUM];
} cam_signal_conn_t;
extern const cam_signal_conn_t cam_periph_signals;
#endif // SOC_LCDCAM_CAM_SUPPORTED
#ifdef __cplusplus
}
#endif