mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(cam): support esp32p4 eco5 dvp cam
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user