feat(cam): support esp32p4 eco5 dvp cam

This commit is contained in:
gaoxu
2026-04-22 15:08:54 +08:00
committed by Gao Xu
parent 54f18f8e15
commit 71b377c039
5 changed files with 51 additions and 5 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ void cam_hal_init(cam_hal_context_t *hal, const cam_hal_config_t *config)
cam_ll_enable_stop_signal(hal->hw, 0);
cam_ll_swap_dma_data_byte_order(hal->hw, config->byte_swap_en);
cam_ll_reverse_dma_data_bit_order(hal->hw, 0);
cam_ll_reverse_dma_data_bit_order(hal->hw, config->bit_swap_en);
cam_ll_enable_vsync_generate_eof(hal->hw, 1);
cam_hal_set_line_int_num(hal, 0);
+2
View File
@@ -28,6 +28,8 @@ typedef struct cam_hal_context {
*/
typedef struct cam_hal_config {
int port; /*!< CAM port */
uint32_t cam_data_width; /*!< CAM data width, 8 or 16 or 24 bit, default to 8 */
bool bit_swap_en; /*!< CAM enable bit swap */
bool byte_swap_en; /*!< CAM enable byte swap */
} cam_hal_config_t;