cam: Remove support for xclk
we do this our own way in CP
This commit is contained in:
parent
20098dfdd8
commit
5d5098152a
|
@ -205,25 +205,8 @@ static void cam_set_pin(const cam_config_t *config) {
|
|||
gpio_matrix_in(config->pin_data[i], I2S0I_DATA_IN0_IDX + (16 - config->bit_width) + i, false);
|
||||
}
|
||||
|
||||
ledc_timer_config_t ledc_timer = {
|
||||
.duty_resolution = LEDC_TIMER_1_BIT,
|
||||
.freq_hz = config->xclk_fre,
|
||||
.speed_mode = LEDC_LOW_SPEED_MODE,
|
||||
.timer_num = LEDC_TIMER_1
|
||||
};
|
||||
ledc_timer_config(&ledc_timer);
|
||||
ledc_channel_config_t ledc_channel = {
|
||||
.channel = LEDC_CHANNEL_2,
|
||||
.duty = 1,
|
||||
.gpio_num = config->pin.xclk,
|
||||
.speed_mode = LEDC_LOW_SPEED_MODE,
|
||||
.timer_sel = LEDC_TIMER_1,
|
||||
.hpoint = 0
|
||||
};
|
||||
ledc_channel_config(&ledc_channel);
|
||||
|
||||
gpio_matrix_in(0x38, I2S0I_H_ENABLE_IDX, false);
|
||||
ESP_LOGI(TAG, "cam_xclk_pin setup\n");
|
||||
ESP_LOGI(TAG, "cam_set_pin\n");
|
||||
}
|
||||
|
||||
static void cam_vsync_intr_enable(uint8_t en) {
|
||||
|
|
|
@ -14,16 +14,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint8_t bit_width;
|
||||
uint32_t xclk_fre;
|
||||
union {
|
||||
struct {
|
||||
uint32_t xclk : 8;
|
||||
uint32_t pclk : 8;
|
||||
uint32_t vsync : 8;
|
||||
uint32_t hsync : 8;
|
||||
|
|
Loading…
Reference in New Issue